What’s Vulnerable › Vulnerabilities
CVE-2022-48816: SUNRPC: lock against ->sock changing during sysfs read
- Severity: medium (CVSS 4.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-16 · updated 2026-10-03
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: lock against ->sock changing during sysfs read ->sock can be set to NULL asynchronously unless ->recv_mutex is held. So it is important to hold that mutex. Otherwise a sysfs read can trigger an oops. Commit 17f09d3f619a ("SUNRPC: Check if the xprt is connected before handling sysfs reads") appears to attempt to fix this problem, but it only narrows the race window.
Affected products
- Linux kernel: from 5.10.67 before 5.11; from 5.13.19 before 5.16.10; 5.17-rc1, 5.17-rc2, 5.17-rc3 — fixed in 5.11, 5.16.10
How to fix
Upgrade to a fixed version: Linux kernel 5.11, 5.16.10. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/9482ab4540f5bcc869b44c067ae99b5fca16bd07
- https://git.kernel.org/stable/c/b49ea673e119f59c71645e2f65b3ccad857c90ee
- https://git.kernel.org/stable/c/cd366b9091a3e6ed8229e4b908e895d20b527dc0
- https://git.kernel.org/stable/c/fdc42287ae3f8a35cc2098307f52d7864b4bc8ed
- https://git.kernel.org/stable/c/9482ab4540f5bcc869b44c067ae99b5fca16bd07
- https://git.kernel.org/stable/c/b49ea673e119f59c71645e2f65b3ccad857c90ee
Get alerted when CVE-2022-48816 or the next vulnerability affects your stack