Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
svcrdma: Reject Write/Reply chunks with segcount 0
A peer can send a Write or Reply chunk whose segcount field is zero. xdr_check_write_chunk() only rejects segcount > rc_maxpages, so zero passes the range check, and xdr_inline_decode(stream, 0) returns the current (non-NULL) cursor without advancing. The function returns true and pcl_alloc_write() then links a struct svc_rdma_chunk with ch_segcount == 0 onto rc_write_pcl or rc_reply_pcl.
An earlier patch in this series made pcl_for_each_segment() safe for ch_segcount == 0, so this no longer drives the memory walk it used to. Rejecting the malformed frame at the decode boundary is still worthwhile as defense in depth: it keeps degenerate zero-segment chunks off the parsed chunk lists entirely, so any future consumer that walks ch_segments directly cannot observe one, and it makes the zero-floor easy to backport to trees where the macro change is more intrusive. RFC 8166 has no meaning for a Write/Reply chunk that describes no remote buffer, so no legitimate client is affected.
xdr_check_reply_chunk() funnels Reply chunks through xdr_check_write_chunk() and inherits the same rejection.
pcl_alloc_write() also links each chunk onto the parsed chunk list before filling its segment array. If a future change weakens the segcount-0 rejection, an incomplete chunk is visible to consumers during the fill loop. Reorder so that list_add_tail() follows the segment fill loop, ensuring only fully-populated chunks appear on the list.
Details
- Affected product:
- AlmaLinux 9.2 ESU , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , TuxCare 9.6 ESU , TuxCare 9.8 ESU
- Affected packages:
- kernel @ 5.14.0 (+5 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
75 kernels
|
| AlmaLinux 8 | Released |
131 kernels
|
| AlmaLinux 9 | Released |
141 kernels
|
| AlmaLinux 9.2 ESU | Released |
36 kernels
|
| AlmaLinux 9.6 ESU | Planned | — |
| CentOS 8 | Released |
3 kernels
|
| CloudLinux OS 7h | Released |
107 kernels
|
| CloudLinux OS 8 | Released |
104 kernels
|
| Debian 12 | Planned | — |
| Debian 13 | Released |
17 kernels
|
| Oracle Linux 10 | Released |
59 kernels
|
| Oracle Linux 8 | Released |
123 kernels
|
| Oracle Linux 9 | Released |
140 kernels
|
| RHEL 10 | Released |
76 kernels
|
| RHEL 8 | Released |
124 kernels
|
| RHEL 9 | Released |
140 kernels
|
| Rocky Linux 10 | Released |
58 kernels
|
| Rocky Linux 8 | Released |
111 kernels
|
| Rocky Linux 9 | Released |
116 kernels
|
| Ubuntu 24.04 | Planned | — |
| Ubuntu 24.04 AWS | Planned | — |
| Ubuntu 26.04 | Released |
3 kernels
|