{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47491","id":"CVE-2021-47491","title":"mm: khugepaged: skip huge page collapse for special files","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: khugepaged: skip huge page collapse for special files\n\nThe read-only THP for filesystems will collapse THP for files opened\nreadonly and mapped with VM_EXEC.  The intended usecase is to avoid TLB\nmisses for large text segments.  But it doesn't restrict the file types\nso a THP could be collapsed for a non-regular file, for exa","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: khugepaged: skip huge page collapse for special files\n\nThe read-only THP for filesystems will collapse THP for files opened\nreadonly and mapped with VM_EXEC.  The intended usecase is to avoid TLB\nmisses for large text segments.  But it doesn't restrict the file types\nso a THP could be collapsed for a non-regular file, for example, block\ndevice, if it is opened readonly and mapped with EXEC permission.  This\nmay cause bugs, like [1] and [2].\n\nThis is definitely not the intended usecase, so just collapse THP for\nregular files in order to close the attack surface.\n\n[shy828301@gmail.com: fix vm_file check [3]]","published":"2024-05-22T08:19:40.101Z","updated":"2026-10-29T11:12:03.230491240Z","reserved":"2024-05-22T06:20:56.201Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0","lessThan":"6d67b2a73b8e3a079c355bab3c1aef7d85a044b8","status":"affected","versionType":"git"},{"version":"99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0","lessThan":"5fcb6fce74ffa614d964667110cf1a516c48c6d9","status":"affected","versionType":"git"},{"version":"99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0","lessThan":"a4aeaa06d45e90f9b279f0b09de84bd00006e733","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.4","status":"affected"},{"version":"0","lessThan":"5.4","status":"unaffected","versionType":"semver"},{"version":"5.10.78","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.14.16","lessThanOrEqual":"5.14.*","status":"unaffected","versionType":"semver"},{"version":"5.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/6d67b2a73b8e3a079c355bab3c1aef7d85a044b8","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/5fcb6fce74ffa614d964667110cf1a516c48c6d9","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/a4aeaa06d45e90f9b279f0b09de84bd00006e733","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0021,"epssPercentile":0.11213,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47491","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47491","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47491","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-47491","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}