mm/mmu_notifier: set ->mm only after mmgrab()
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: mm/mmu_notifier: set ->mm only after mmgrab() Radeon uses a non-NULL notifier->mm to decide whether to call mmu_interval_notifier_remove() when freeing a buffer object. __mmu_interval_notifier_insert() sets ->mm before validating the range, so a wrapping userptr range can leave ->mm set after insertion fails. Cleanup then tries to remove an unregistered notifier for which no mm reference was acquired. Set ->mm only after mmgrab(), once insertion can no longer fail. While we could fix radeon's code instead, setting ->mm on success only makes the code more robust. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description ]
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 3506ff69c3ec725b9c3e7f074fd2d265922f139a, before 61bc907ff3fb703484239e963198a66988351877; from 3506ff69c3ec725b9c3e7f074fd2d265922f139a, before 1dab01f19b76a8e354c2c06800882027ffa6f7c3; from 3506ff69c3ec725b9c3e7f074fd2d265922f139a, before b6b43bf9d25a459e3ec9993f05c7c9b1796622db; from 3506ff69c3ec725b9c3e7f074fd2d265922f139a, before 87e71f7808952b09f0b85e72d58f6dc7fac3efb7; from 3506ff69c3ec725b9c3e7f074fd2d265922f139a, before fe3b7bf598ba708431d531cfbb1035b8a463eed9; from 3506ff69c3ec725b9c3e7f074fd2d265922f139a, before 3df451b65b6bc342d9291b1132baf4a4dd3a7b63; and 2 more | 61bc907ff3fb703484239e963198a66988351877; 1dab01f19b76a8e354c2c06800882027ffa6f7c3; b6b43bf9d25a459e3ec9993f05c7c9b1796622db; 87e71f7808952b09f0b85e72d58f6dc7fac3efb7 |
| Linux Linux | Software | 5.5 | 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 8 sources for this flaw, none tagged as a vendor patch.