# CVE-2026-31640: rxrpc: Fix use of wrong skb when comparing queued RESP challenge serial

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-04-24T14:44:54.024Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

rxrpc: Fix use of wrong skb when comparing queued RESP challenge serial

In rxrpc_post_response(), the code should be comparing the challenge serial
number from the cached response before deciding to switch to a newer
response, but looks at the newer packet private data instead, rendering the
comparison always false.

Fix this by switching to look at the older packet.

Fix further[1] to substitute the new packet in place of the old one if
newer and also to release whichever we don't use.

(As written by CVE List.)

## Affected

- Linux Linux: from 5800b1cf3fd8ccab752a101865be1e76dac33142 before 9132b1a7bf83b4a8042fffbc99d075b727a16742; from 5800b1cf3fd8ccab752a101865be1e76dac33142 before 20386e7f8d97475b8d815873e246423317ec4260; from 5800b1cf3fd8ccab752a101865be1e76dac33142 before b33f5741bb187db8ff32e8f5b96def77cc94dfca; 6.16 (not affected: before 6.16; from 6.18.23 up to 6.18.*; from 6.19.13 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.16.1 before 6.18.23; from 6.19 before 6.19.13; 6.16; 7.0

## References

- <https://git.kernel.org/stable/c/9132b1a7bf83b4a8042fffbc99d075b727a16742> (patch)
- <https://git.kernel.org/stable/c/20386e7f8d97475b8d815873e246423317ec4260> (patch)
- <https://git.kernel.org/stable/c/b33f5741bb187db8ff32e8f5b96def77cc94dfca> (patch)

## Sources

- CVE List: [CVE-2026-31640](https://www.cve.org/CVERecord?id=CVE-2026-31640), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-31640](https://nvd.nist.gov/vuln/detail/CVE-2026-31640), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31640 · Whole record: https://cve.day/CVE-2026-31640.json · Rebuilt by cve.day 2026-11-25T22:59:19.528Z
