SUNRPC: Copy the deferred RPC Call from the head buffer
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel de4c9b2daac9e0e9bcf2f63b4c2c61f59c63a3e7, Kernel 2192a56b0686599358909c3e12e9a366f5b5d452, Kernel 2df839cb84c87063328fbde7ed596ebfcd90f5c1 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Copy the deferred RPC Call from the head buffer svc_defer() snapshots the RPC Call for replay once a pending cache upcall resolves. It copies the Call starting (rq_arg.len - head[0].iov_len) bytes before head[0].iov_base, a back-up that once covered a transport header. No transport has had one since commit 983084b2672c ("SUNRPC: Remove svc_rqst::rq_xprt_hlen"), so the two lengths are meant to be equal. An RPCSEC_GSS Call breaks that assumption. Unwrapping the integrity service truncates rq_arg.len by the length of the trailing checksum, and unwrapping the privacy service leaves rq_arg.len short by an amount the client sets with trailing bytes after the wrap token. Neither adjusts head[0].iov_len. Both lengths are size_t, so the subtraction underflows and the copy starts past head[0].iov_base. Every deferred integrity Call replays a shifted snapshot. A deferred replay skips GSS verification, so a shifted snapshot runs as an authenticated Call. With the privacy service the offset is client-chosen. A forged Call placed in that window, naming another user's GSS context handle, runs under that identity. Copy the Call from head[0].iov_base. Refuse to defer a Call whose length runs past the head buffer, so the copy cannot read out of bounds.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=260c1d1298f6703d38fdccd3dd5a310766327340 <de4c9b2daac9e0e9bcf2f63b4c2c61f59c63a3e7, >=260c1d1298f6703d38fdccd3dd5a310766327340 <2192a56b0686599358909c3e12e9a366f5b5d452, >=260c1d1298f6703d38fdccd3dd5a310766327340 <2df839cb84c87063328fbde7ed596ebfcd90f5c1, >=260c1d1298f6703d38fdccd3dd5a310766327340 <629a17cc81fe0b749bbee8303797b6c99a3e776b, >=260c1d1298f6703d38fdccd3dd5a310766327340 <6ba5228ca9ec4adf24c1d1ac50620556993ac6bd, >=260c1d1298f6703d38fdccd3dd5a310766327340 <70614e41d379e5b9b1893ac65b49ae4cea6c36eb, >=260c1d1298f6703d38fdccd3dd5a310766327340 <a56ec5e117238c45d66be6f1125b4d5d0e715241, >=260c1d1298f6703d38fdccd3dd5a310766327340 <d514dd81771aff1192e84a57ae60428c13f07ccb, =2.6.25 | de4c9b2daac9e0e9bcf2f63b4c2c61f59c63a3e7, 2192a56b0686599358909c3e12e9a366f5b5d452, 2df839cb84c87063328fbde7ed596ebfcd90f5c1, 629a17cc81fe0b749bbee8303797b6c99a3e776b, 6ba5228ca9ec4adf24c1d1ac50620556993ac6bd, 70614e41d379e5b9b1893ac65b49ae4cea6c36eb, a56ec5e117238c45d66be6f1125b4d5d0e715241, d514dd81771aff1192e84a57ae60428c13f07ccb |
| linux-kernel: Kernel | >=5.11.0 <5.15.226, >=5.16.0 <6.1.193, >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=6.2.0 <6.6.163, >=6.7.0 <6.12.117, >=2.6.25 <5.10.275 | 5.15.226, 6.1.193, 6.18.61, 7.3.2, 6.6.163, 6.12.117, 5.10.275 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket