PT-2024-27218 · Linux+3 · Linux Kernel+3
Published
2024-05-05
·
Updated
2024-08-13
·
CVE-2024-36943
CVSS v3.1
4.7
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue is related to the loss of young/dirty bits during pagemap scan in the Linux kernel. Specifically, the
make uffd wp pte() function was previously doing pte = ptep get(ptep); ptep modify prot start(ptep); pte = pte mkuffd wp(pte); ptep modify prot commit(ptep, pte);. However, if another thread accessed or dirtied the pte between the first two calls, this could lead to loss of that information. The correct pattern to prevent any possible race is pte = ptep modify prot start(ptep); pte = pte mkuffd wp(pte); ptep modify prot commit(ptep, pte);. This ensures that any access after the first call would see an invalid pte and cause a fault.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Time Of Check To Time Of Use
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Linuxmint
Linux Kernel
Ubuntu