mm/filemap: finish fault cleanup before dropping the fault lock
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: mm/filemap: finish fault cleanup before dropping the fault lock On a retried fault, a fatal signal interrupting the folio lock wait makes lock_folio_maybe_drop_mmap() drop the fault lock without pinning the file. However, filemap_fault() may still need to release mapping->invalidate_lock. A concurrent munmap() can release the last file reference and free the mapping before that unlock. Defer dropping the fault lock to filemap_fault()'s retry cleanup, after releasing invalidate_lock. If the fault lock was already dropped for I/O, release the existing file reference instead. Keep the fault lock held for FAULT_FLAG_RETRY_NOWAIT as before.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 730633f0b7f951726e87f912a6323641f674ae34, before 35268471f4a4f3b09374a0d97aaa423dfb6aae81; from 730633f0b7f951726e87f912a6323641f674ae34, before 80c954830d5a22fa200d74bac413cb3390b95f04; from 730633f0b7f951726e87f912a6323641f674ae34, before c3fa2252d436e4ccd483a329c6b4180d11846269; from 730633f0b7f951726e87f912a6323641f674ae34, before efa7aec3f30d79a7d35edd219c6f49235f331013; from 730633f0b7f951726e87f912a6323641f674ae34, before f1c149e651fd55edc0769b76ebd688ae6cbd48f0; from 730633f0b7f951726e87f912a6323641f674ae34, before 8500faaa6ef7b4489294f2bf98c9017ee009986c; and 1 more | 35268471f4a4f3b09374a0d97aaa423dfb6aae81; 80c954830d5a22fa200d74bac413cb3390b95f04; c3fa2252d436e4ccd483a329c6b4180d11846269; efa7aec3f30d79a7d35edd219c6f49235f331013 |
| Linux Linux | Software | 5.15 | not recorded |
The 7.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 7 sources for this flaw, none tagged as a vendor patch.