Linux
mm/slub: avoid accessing metadata when pointer is invalid in object_err()
In the Linux kernel, the following vulnerability has been resolved: mm/slub: avoid accessing metadata when pointer is invalid in object_err() object_err() reports details of an object for further debugging, such as the freelist pointer, redzone, etc. However, if the pointer is invalid, attempting to access object metadata can lead to a crash since it does not point to a valid object. One known path to the crash is when alloc_consistency_checks() determines the pointer to the allocated object is invalid because of a freelist corruption, and calls object_err() to report it. The debug code should report and handle the corruption gracefully and not crash in the process. In case the pointer is NULL or check_valid_pointer() returns false for the pointer, only print the pointer value and skip accessing metadata.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < 872f2c34ff232af1e65ad2df86d61163c8ffad42
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < f66012909e7bf383fcdc5850709ed5716073fdc4
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < 7e287256904ee796c9477e3ec92b07f236481ef3
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < 1f0797f17927b5cad0fb7eced422f9a7c30a3191
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < 0ef7058b4dc6fcef622ac23b45225db57f17b83f
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < dda6ec365ab04067adae40ef17015db447e90736
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < 3baa1da473e6e50281324ff1d332d1a07a3bb02e
- >= 81819f0fc8285a2a5a921c019e3e3d7b6169d225, < b4efccec8d06ceb10a7d34d7b1c449c569d53770
Fixed in 872f2c34ff232af1e65ad2df86d61163c8ffad42, f66012909e7bf383fcdc5850709ed5716073fdc4, 7e287256904ee796c9477e3ec92b07f236481ef3, 1f0797f17927b5cad0fb7eced422f9a7c30a3191, 0ef7058b4dc6fcef622ac23b45225db57f17b83f, dda6ec365ab04067adae40ef17015db447e90736, 3baa1da473e6e50281324ff1d332d1a07a3bb02e, b4efccec8d06ceb10a7d34d7b1c449c569d53770
- 2.6.22
Fixed in 0, 5.4.299, 5.10.243, 5.15.192, 6.1.151, 6.6.105, 6.12.46, 6.16.6, 6.17
Mitigation
Upgrade Linux to 872f2c34ff232af1e65ad2df86d61163c8ffad42 or f66012909e7bf383fcdc5850709ed5716073fdc4 or 7e287256904ee796c9477e3ec92b07f236481ef3 or 1f0797f17927b5cad0fb7eced422f9a7c30a3191 or 0ef7058b4dc6fcef622ac23b45225db57f17b83f or dda6ec365ab04067adae40ef17015db447e90736 or 3baa1da473e6e50281324ff1d332d1a07a3bb02e or b4efccec8d06ceb10a7d34d7b1c449c569d53770 or later.
Upgrade Linux to 0 or 5.4.299 or 5.10.243 or 5.15.192 or 6.1.151 or 6.6.105 or 6.12.46 or 6.16.6 or 6.17 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.