Linux
erofs: skip sufficiently large global buffers when resizing
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d6db47e571dcaecaeaafa8840d00ae849ae3907b, < 3fbdd15d5830f52661eb78be95058d101cb0c2cb
- >= d6db47e571dcaecaeaafa8840d00ae849ae3907b, < 7267557ce98ccd07faaf3bc86382448950cc4ff6
- >= d6db47e571dcaecaeaafa8840d00ae849ae3907b, < 7f4a89d4f0d6acaf4b756c31de48f2109a257b70
- >= d6db47e571dcaecaeaafa8840d00ae849ae3907b, < a7d097cf01301c5da37927c8f26123d006f0fd8a
Fixed in 3fbdd15d5830f52661eb78be95058d101cb0c2cb, 7267557ce98ccd07faaf3bc86382448950cc4ff6, 7f4a89d4f0d6acaf4b756c31de48f2109a257b70, a7d097cf01301c5da37927c8f26123d006f0fd8a
- 6.10
Fixed in 0, 6.12.111, 6.18.51, 7.2.4, 7.3
Mitigation
Upgrade Linux to 3fbdd15d5830f52661eb78be95058d101cb0c2cb or 7267557ce98ccd07faaf3bc86382448950cc4ff6 or 7f4a89d4f0d6acaf4b756c31de48f2109a257b70 or a7d097cf01301c5da37927c8f26123d006f0fd8a or later.
Upgrade Linux to 0 or 6.12.111 or 6.18.51 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.