Bugzilla – Bug 1228038
VUL-0: CVE-2022-48816: kernel: SUNRPC: lock against ->sock changing during sysfs read
Last modified: 2024-07-17 14:57:05 UTC
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. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-48816 https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2022/CVE-2022-48816.mbox https://git.kernel.org/stable/c/9482ab4540f5bcc869b44c067ae99b5fca16bd07 https://git.kernel.org/stable/c/b49ea673e119f59c71645e2f65b3ccad857c90ee https://www.cve.org/CVERecord?id=CVE-2022-48816 https://bugzilla.redhat.com/show_bug.cgi?id=2298155