Vulnerability in Linux
CVE-2021-47491
In the Linux kernel, the following vulnerability has been resolved: mm: khugepaged: skip huge page collapse for special files The read-only THP for filesystems will collapse THP for files opened readonly and mapped with VM_EXEC. The intended usecase is to avoid TLB misses for large text segments. But it doesn't restrict the file types so a THP could be collapsed for a non-regular file, for example, block device, if it is opened readonly and mapped with EXEC permission. This may cause bugs, like [1] and [2]. This is definitely not the intended usecase, so just collapse THP for regular files in order to close the attack surface. [shy828301@gmail.com: fix vm_file check [3]]
EPSS: 0.002 (11.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Linux — versions 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0, 5.4, 0
- Linux Linux_kernel — versions 5.15
References
Frequently asked questions
- What is CVE-2021-47491?
- CVE-2021-47491 is a medium-severity vulnerability in Linux. CVSS score: 5.5/10. Published 2024-05-22.
- How severe is CVE-2021-47491?
- Medium severity. CVSS v3 base score is 5.5 out of 10.