nfsd: hold cl_lock in client_has_openowners()
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: nfsd: hold cl_lock in client_has_openowners() client_has_openowners() walks clp->cl_openowners and reads so_stateids without clp->cl_lock. nfs4_put_stateowner() unhashes that openowner under cl_lock and then frees it, so a concurrent EXCHANGE_ID with mismatched creds can use-after-free the nfs4_openowner. BUG: KASAN: slab-use-after-free in client_has_state+0x10a/0x140 fs/nfsd/nfs4state.c:3718 client_has_openowners() nfsd4_exchange_id nfsd4_proc_compound nfsd_dispatch svc_process Take clp->cl_lock while client_has_openowners() walks the openowner list.
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 4eaea13425078272895ec37814c6878d78b8db9f, before ef656992099e2eaa85dda51c8065c65a2f6776c3; from 4eaea13425078272895ec37814c6878d78b8db9f, before 41fc0b50b443096a65691b08259478f52540bc75; from 4eaea13425078272895ec37814c6878d78b8db9f, before ea3d70a269976c443181c49d40a8101cb4ed4aa6; from 4eaea13425078272895ec37814c6878d78b8db9f, before 7f6b35b5a5f7ac175c6cd1ab4d4f58fee21d59a4; from 4eaea13425078272895ec37814c6878d78b8db9f, before 202b7a6c462daa55a9f4b01f0a25eca2b8d5f2e3; from 4eaea13425078272895ec37814c6878d78b8db9f, before 540649cb8543472f6edfe9ae8b42c04aa3bd67e9; and 2 more | ef656992099e2eaa85dda51c8065c65a2f6776c3; 41fc0b50b443096a65691b08259478f52540bc75; ea3d70a269976c443181c49d40a8101cb4ed4aa6; 7f6b35b5a5f7ac175c6cd1ab4d4f58fee21d59a4 |
| Linux Linux | Software | 4.4 | 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.