CVE-2024-46688

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46688
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46688.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-46688
Downstream
Published
2024-09-13T06:15:13Z
Modified
2024-09-19T18:01:43Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

erofs: fix out-of-bound access when zerofsgbuf_growsize() partially fails

If zerofsgbuf_growsize() partially fails on a global buffer due to memory allocation failure or fault injection (as reported by syzbot [1]), new pages need to be freed by comparing to the existing pages to avoid memory leaks.

However, the old gbuf->pages[] array may not be large enough, which can lead to null-ptr-deref or out-of-bound access.

Fix this by checking against gbuf->nrpages in advance.

[1] https://lore.kernel.org/r/000000000000f7b96e062018c6e3@google.com

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.10.9-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}