PT-2024-11431 · Linux+4 · Linux Kernel+4
Jiazi Li
·
Published
2021-10-12
·
Updated
2024-06-25
·
CVE-2021-47435
CVSS v3.1
4.7
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The vulnerability is related to a NULL pointer dereference in the Linux kernel when completing IO. The issue arises when
dm io dec pending() calls end io acct() first, followed by decrementing the in-flight pending count. If a task is swapping the DM table at the same time, it can result in a crash due to mempool->elements being NULL. The call trace includes functions such as mempool free(), bio put(), dec pending(), clone endio(), and bio endio(). To fix this, establish pointers to struct dm io members in dm io dec pending() to pass into end io acct() after free io() is called, and move end io acct() after free io().Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
NULL Pointer Dereference
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Centos
Linux Kernel
Red Hat
Suse