erofs: skip sufficiently large global buffers when resizing
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.111, 6.18.51, 7.2.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: erofs: skip sufficiently large global buffers when resizing z_erofs_gbuf_nrpages is advanced only after every global buffer has been grown. If a resize fails after some buffers were enlarged, a retry revisits those enlarged buffers. Retrying the same size then returns -ENOMEM because alloc_pages_bulk() has no pages to add and the unchanged return value is treated as a failure. Retrying an intermediate size allocates a temporary pointer array smaller than gbuf->nrpages and copies more existing pointers than the array can hold. Skip buffers that already satisfy the request. Once all remaining buffers have caught up, advancing z_erofs_gbuf_nrpages again describes the guaranteed minimum size across the pool.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From d6db47e571dcaecaeaafa8840d00ae849ae3907b · fixed in 3fbdd15d5830f52661eb78be95058d101cb0c2cb; From d6db47e571dcaecaeaafa8840d00ae849ae3907b · fixed in 7267557ce98ccd07faaf3bc86382448950cc4ff6; From d6db47e571dcaecaeaafa8840d00ae849ae3907b · fixed in 7f4a89d4f0d6acaf4b756c31de48f2109a257b70; From d6db47e571dcaecaeaafa8840d00ae849ae3907b · fixed in a7d097cf01301c5da37927c8f26123d006f0fd8a
- Linux Linux
6.10
- KernelLinux
From 6.10.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.4