lockd: Plug nlm_file leak when nlm_do_fopen() fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel bca74fff138429f3d5802865f38fc883d53a4f1a, Kernel 1161c4b5bd0048c8148e919f818a33cff3623ef0, Kernel 1403f1221a35a6caf959bb7bf005741f17263c66 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: lockd: Plug nlm_file leak when nlm_do_fopen() fails A client can repeatedly drive nlm_do_fopen() failures by presenting file handles that the underlying export rejects. After kzalloc_obj() succeeds in nlm_lookup_file(), the freshly allocated nlm_file is not yet inserted into nlm_files[]. The nlm_do_fopen() failure path jumps to out_unlock, which releases nlm_file_mutex and returns without freeing the allocation, so each failure leaks one nlm_file. Route the failure through out_free so kfree() runs before the function returns.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e580323ac0b51ad10ec2e181d1f777479b7983e7 <bca74fff138429f3d5802865f38fc883d53a4f1a, >=7f024fcd5c97dc70bb9121c80407cf3cf9be7159 <1161c4b5bd0048c8148e919f818a33cff3623ef0, >=7f024fcd5c97dc70bb9121c80407cf3cf9be7159 <1403f1221a35a6caf959bb7bf005741f17263c66, >=7f024fcd5c97dc70bb9121c80407cf3cf9be7159 <39f59bf67231ed2eb0cdf6337194360e964b609a, >=7f024fcd5c97dc70bb9121c80407cf3cf9be7159 <3f2dc01b9cb516d4727a3b9263ee58c71ca00ba9, >=7f024fcd5c97dc70bb9121c80407cf3cf9be7159 <d7c677feb3aa1f42b1026d75a8ea61338b51e4fb, >=7f024fcd5c97dc70bb9121c80407cf3cf9be7159 <ddfbd816273b4e9c9b836f5b8773664c6f40f807, >=7f024fcd5c97dc70bb9121c80407cf3cf9be7159 <f16a1513452edb532fec81e591c64c320866719c, =5.15, >=5.10.220 <5.10.261 | bca74fff138429f3d5802865f38fc883d53a4f1a, 1161c4b5bd0048c8148e919f818a33cff3623ef0, 1403f1221a35a6caf959bb7bf005741f17263c66, 39f59bf67231ed2eb0cdf6337194360e964b609a, 3f2dc01b9cb516d4727a3b9263ee58c71ca00ba9, d7c677feb3aa1f42b1026d75a8ea61338b51e4fb, ddfbd816273b4e9c9b836f5b8773664c6f40f807, f16a1513452edb532fec81e591c64c320866719c, 5.10.261 |
| linux-kernel: Kernel | >=5.15.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=5.10.220 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket