CVE-2024-47676

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-47676
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47676.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-47676
Downstream
Related
Published
2024-10-21T11:53:20Z
Modified
2025-10-22T03:21:40.277820Z
Summary
mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway
Details

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

mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway

Syzbot reports a UAF in hugetlbfault(). This happens because vmfanonprepare() could drop the per-VMA lock and allow the current VMA to be freed before hugetlbvmaunlockread() is called.

We can fix this by using a modified version of vmfanonprepare() that doesn't release the VMA lock on failure, and then release it ourselves after hugetlbvmaunlock_read().

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
9acad7ba3e25d11f4c96df1b7312ae89e6faca5c
Fixed
e897d184a8dd4a4e1f39c8c495598e4d9472776c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9acad7ba3e25d11f4c96df1b7312ae89e6faca5c
Fixed
d59ebc99dee0a2687a26df94b901eb8216dbf876
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9acad7ba3e25d11f4c96df1b7312ae89e6faca5c
Fixed
98b74bb4d7e96b4da5ef3126511febe55b76b807

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.10.1
v6.10.10
v6.10.11
v6.10.12
v6.10.2
v6.10.3
v6.10.4
v6.10.5
v6.10.6
v6.10.7
v6.10.8
v6.10.9
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.11.1
v6.8
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.10.13
Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.11.2