nfsd: validate symlink target length in NFSv4 CREATE
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel b24843ea3de1676b29902457b38507c95a80649b, Kernel 041f57056e5fb9c80adc088269322d2c61074406, Kernel 36011308b3f01ce7dc9954f3cefcbb5291af9f95 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: nfsd: validate symlink target length in NFSv4 CREATE nfsd4_decode_create() accepts an unbounded cr_datalen from the wire for NF4LNK symlink targets, allowing a client to force a kmalloc of up to the maximum RPC payload size (several MiB) per COMPOUND op that persists until compound teardown. The VFS rejects oversized targets with ENAMETOOLONG, but the allocation has already occurred. Reject cr_datalen == 0 early with nfserr_inval and cr_datalen greater than NFS4_MAXPATHLEN (PATH_MAX) with nfserr_nametoolong to bound the allocation.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b24843ea3de1676b29902457b38507c95a80649b, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <041f57056e5fb9c80adc088269322d2c61074406, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <36011308b3f01ce7dc9954f3cefcbb5291af9f95, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3ef5e7a01a4d74995a65496bc9166d1e980a4355, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <45ec115cbfecb4b3cfab7fca6f73d1b60696a25a, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8661d3cb38fd148947e57dbc0871fd4d3fa33bbf, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <888dad4b557352cf85be31613407b5ba51ad07d1, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <895a485cd3758031ef9993c0d53cf19ce8fb4ccc, =2.6.12 | b24843ea3de1676b29902457b38507c95a80649b, 041f57056e5fb9c80adc088269322d2c61074406, 36011308b3f01ce7dc9954f3cefcbb5291af9f95, 3ef5e7a01a4d74995a65496bc9166d1e980a4355, 45ec115cbfecb4b3cfab7fca6f73d1b60696a25a, 8661d3cb38fd148947e57dbc0871fd4d3fa33bbf, 888dad4b557352cf85be31613407b5ba51ad07d1, 895a485cd3758031ef9993c0d53cf19ce8fb4ccc |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=6.13.0 <6.18.50, >=6.19.0 <7.2.4, >=6.2.0 <6.6.157, >=6.7.0 <6.12.109, >=2.6.12 <5.10.270 | 5.15.221, 6.1.188, 6.18.50, 7.2.4, 6.6.157, 6.12.109, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket