PT-2024-29166 · Linux+2 · Linux Kernel+2
Baolin Wang
·
Published
2024-06-15
·
Updated
2025-02-08
·
CVE-2024-40949
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/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 issue arises when replacing an old shmem folio with a new one, causing mem cgroup migrate() to clear the old folio's memcg data. As a result, the old folio cannot obtain the correct memcg's lruvec needed to remove itself from the LRU list when it is being freed. This could lead to possible serious problems, such as LRU list crashes due to holding the wrong LRU lock, and incorrect LRU statistics. The fix involves falling back to use the mem cgroup replace folio() to replace the old shmem folio.
Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Linux Kernel
Ubuntu