CVE-2024-40949
kernel: mm: shmem: fix getting incorrect lruvec when replacing a shmem folio
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 12, 2024
Updated · August 28, 2026
Description
A flaw was found in "mm: shmem" in the Linux Kernel. This issue was resolved by fixing incorrect LRU vector handling when replacing shmem folios. The issue occurred because the replacement cleared the old folio's memory control group (memcg) data, causing incorrect LRU vector retrieval and potential system crashes due to wrong LRU locks and inaccurate statistics.
Statement
Red Hat Enterprise Linux is not vulnerable to this CVE, as it does not affect the versions or configurations of the Linux kernel used in its distributions.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-666 · Operation on Resource in Wrong Phase of Lifetime