Linux
nfsd: validate symlink target length in NFSv4 CREATE
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 36011308b3f01ce7dc9954f3cefcbb5291af9f95
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 888dad4b557352cf85be31613407b5ba51ad07d1
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8661d3cb38fd148947e57dbc0871fd4d3fa33bbf
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3ef5e7a01a4d74995a65496bc9166d1e980a4355
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b24843ea3de1676b29902457b38507c95a80649b
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 895a485cd3758031ef9993c0d53cf19ce8fb4ccc
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 45ec115cbfecb4b3cfab7fca6f73d1b60696a25a
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 041f57056e5fb9c80adc088269322d2c61074406
Fixed in 36011308b3f01ce7dc9954f3cefcbb5291af9f95, 888dad4b557352cf85be31613407b5ba51ad07d1, 8661d3cb38fd148947e57dbc0871fd4d3fa33bbf, 3ef5e7a01a4d74995a65496bc9166d1e980a4355, b24843ea3de1676b29902457b38507c95a80649b, 895a485cd3758031ef9993c0d53cf19ce8fb4ccc, 45ec115cbfecb4b3cfab7fca6f73d1b60696a25a, 041f57056e5fb9c80adc088269322d2c61074406
- 2.6.12
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 36011308b3f01ce7dc9954f3cefcbb5291af9f95 or 888dad4b557352cf85be31613407b5ba51ad07d1 or 8661d3cb38fd148947e57dbc0871fd4d3fa33bbf or 3ef5e7a01a4d74995a65496bc9166d1e980a4355 or b24843ea3de1676b29902457b38507c95a80649b or 895a485cd3758031ef9993c0d53cf19ce8fb4ccc or 45ec115cbfecb4b3cfab7fca6f73d1b60696a25a or 041f57056e5fb9c80adc088269322d2c61074406 or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.