CVE-2022-49927: nfs4: Fix kmemleak when allocate slot failed
In the Linux kernel, the following vulnerability has been resolved:
nfs4: Fix kmemleak when allocate slot failed
If one of the slot allocate failed, should cleanup all the other allocated slots, otherwise, the allocated slots will leak:
unreferenced object 0xffff8881115aa100 (size 64): comm ""mount.nfs"", pid 679, jiffies 4294744957 (age 115.037s) hex dump (first 32 bytes): 00 cc 19 73 81 88 ff ff 00 a0 5a 11 81 88 ff ff ...s......Z..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000007a4c434a>] nfs4findorcreateslot+0x8e/0x130 [<000000005472a39c>] nfs4reallocslottable+0x23f/0x270 [<00000000cd8ca0eb>] nfs40initclient+0x4a/0x90 [<00000000128486db>] nfs4initclient+0xce/0x270 [<000000008d2cacad>] nfs4setclient+0x1a2/0x2b0 [<000000000e593b52>] nfs4createserver+0x300/0x5f0 [<00000000e4425dd2>] nfs4trygettree+0x65/0x110 [<00000000d3a6176f>] vfsgettree+0x41/0xf0 [<0000000016b5ad4c>] pathmount+0x9b3/0xdd0 [<00000000494cae71>] x64sysmount+0x190/0x1d0 [<000000005d56bdec>] dosyscall64+0x35/0x80 [<00000000687c9ae4>] entrySYSCALL64afterhwframe+0x46/0xb0
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2022-49927?
CVE-2022-49927 has a moderate severity rating due to the potential for memory leaks in the Linux kernel.
How do I fix CVE-2022-49927?
To resolve CVE-2022-49927, ensure you update your Linux kernel to the patched version that includes the fix for the NFS4 slot allocation.
What systems are affected by CVE-2022-49927?
CVE-2022-49927 affects various versions of the Linux kernel where NFS4 functionality is implemented.
What are the potential impacts of CVE-2022-49927?
The potential impacts of CVE-2022-49927 include increased memory usage and possible denial of service due to memory leaks.
Has CVE-2022-49927 been publicly disclosed?
Yes, CVE-2022-49927 has been publicly disclosed and is documented in the Common Vulnerabilities and Exposures database.