CVE-2024-46838

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46838
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46838.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46838
Downstream
Published
2024-09-27T12:39:33.755Z
Modified
2025-11-28T02:34:30.933292Z
Summary
userfaultfd: don't BUG_ON() if khugepaged yanks our page table
Details

In the Linux kernel, the following vulnerability has been resolved:

userfaultfd: don't BUG_ON() if khugepaged yanks our page table

Since khugepaged was changed to allow retracting page tables in file mappings without holding the mmap lock, these BUG_ON()s are wrong - get rid of them.

We could also remove the preceding "if (unlikely(...))" block, but then we could reach pteoffsetmap_lock() with transhuge pages not just for file mappings but also for anonymous mappings - which would probably be fine but I think is not necessarily expected.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46838.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1d65b771bc08cd054cf6d3766a72e113dc46d62f
Fixed
4a594acc12d5954cdc71d4450a386748bf3d136a
Fixed
db978287e908d48b209e374b00d847b2d785e0a9
Fixed
4828d207dc5161dc7ddf9a4f6dcfd80c7dd7d20a

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.51
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.10