NFSD: Fix out-of-bounds read in the rpc_status dump
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel cbea14890783fead76f878caf0775a62a42049bf, Kernel 35c0d6b9d14c1f065dfa8338063fbe3b396b4b3c, Kernel 6239443bacb4cb1bb4a9e868474ccc03b2f709ce and 4 more.
In the Linux kernel, the following vulnerability has been resolved: NFSD: Fix out-of-bounds read in the rpc_status dump nfsd_nl_rpc_status_get_dumpit() loads args->opcnt and args->ops separately, then walks ops[] before rechecking rq_status_counter. A COMPOUND that completes between the two loads runs nfsd4_release_compoundargs(), which zeroes opcnt and points ops back at the eight-entry inline array. A dump that already sampled an opcnt of 200 clamps it to the sixteen slots in rq_opnum, then indexes iops[0..15]. iops is the last member of struct nfsd4_compoundargs and rq_argp is allocated at exactly that size, so the walk runs off the end of the allocation. The trailing recheck discards the sampled data, but the read has already happened. NFSD_CMD_RPC_STATUS_GET carries no GENL_ADMIN_PERM, so an unprivileged local user can repeat the dump against a busy server until it lands in the window. Sample opcnt and ops into locals, then finish the counter recheck before dereferencing ops. An unchanged counter means both came from the same COMPOUND, where opcnt cannot exceed what ops holds.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=bd9d6a3efa9709e653aafbeb859289feccb8e70c <cbea14890783fead76f878caf0775a62a42049bf, >=bd9d6a3efa9709e653aafbeb859289feccb8e70c <35c0d6b9d14c1f065dfa8338063fbe3b396b4b3c, >=bd9d6a3efa9709e653aafbeb859289feccb8e70c <6239443bacb4cb1bb4a9e868474ccc03b2f709ce, >=bd9d6a3efa9709e653aafbeb859289feccb8e70c <676b048197cd4b83d63690fc7452a3af9bfd0c43, =6.7 | cbea14890783fead76f878caf0775a62a42049bf, 35c0d6b9d14c1f065dfa8338063fbe3b396b4b3c, 6239443bacb4cb1bb4a9e868474ccc03b2f709ce, 676b048197cd4b83d63690fc7452a3af9bfd0c43 |
| linux-kernel: Kernel | >=6.19.0 <7.3.2, >=6.7.0 <6.12.117, >=6.13.0 <6.18.61 | 7.3.2, 6.12.117, 6.18.61 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket