lockd: Fix use-after-free in nlmsvc_retry_blocked
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: lockd: Fix use-after-free in nlmsvc_retry_blocked nlmsvc_retry_blocked() examines the block at the head of nlm_blocked under nlm_blocked_lock, then releases the lock before calling nlmsvc_grant_blocked() or retry_deferred_block(). The nlm_blocked list reference is all that keeps the block alive across that window. nlmsvc_grant_blocked() does take one of its own, but not until after the lock has been dropped. Unmounting the nfsd filesystem while a lock request is still blocked reaches nlmsvc_traverse_blocks(), which drops the list reference and frees the block along with the nlm_rqst hanging off it. BUG: KASAN: slab-use-after-free in nlm_async_call+0xd6/0x230 Read of size 8 at addr ffff88811b04c808 by task lockd/8377 nlm_async_call+0xd6/0x230 nlmsvc_retry_blocked+0x61c/0x800 lockd+0x144/0x1c0 Freed by task 8392: nlmsvc_release_block+0x231/0x290 nlmsvc_traverse_blocks+0x139/0x1b0 nlm_traverse_files+0x1aa/0xa00 nlmsvc_free_host_resources+0x12/0x60 nlm_shutdown_hosts_net+0x127/0x280 lockd_down+0xd5/0x1c0 Take a reference before releasing nlm_blocked_lock and drop it once the retry has run.
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 0e4ac9d93515b27fd7635332d73eae3192ed5d4e, before 12515c7c98ed26de43276d2f05e3bbf987a957a4; from 0e4ac9d93515b27fd7635332d73eae3192ed5d4e, before aa5cb74fdbb5accd0d5e96eea9116b277057eb24; from 0e4ac9d93515b27fd7635332d73eae3192ed5d4e, before ae650b72f49cf07b22dcfb538f1362ed1cfa7200; from 0e4ac9d93515b27fd7635332d73eae3192ed5d4e, before 25d464587df6b0b0f3f34dfbd4b4770a0ef674eb; from 0e4ac9d93515b27fd7635332d73eae3192ed5d4e, before 6506c27da6756c0c7590ef60774ee5d35f6a4100; from 0e4ac9d93515b27fd7635332d73eae3192ed5d4e, before 70825b251e5f7855fd7bd93afc0b698154e00e70; and 2 more | 12515c7c98ed26de43276d2f05e3bbf987a957a4; aa5cb74fdbb5accd0d5e96eea9116b277057eb24; ae650b72f49cf07b22dcfb538f1362ed1cfa7200; 25d464587df6b0b0f3f34dfbd4b4770a0ef674eb |
| Linux Linux | Software | 2.6.22 | not recorded |
The 9.8 severity score (critical) 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 | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| 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 | 3.9 | 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.