# CVE-2026-90235: sunrpc: xprtsock: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-09-17T16:07:41.251Z
- Modified: 2026-10-30T13:20:47.470Z
- Assigned by: Linux

## Description

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

sunrpc: xprtsock: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE

xprtsock replaces and restores sk->sk_data_ready and
sk->sk_write_space on live sockets with plain stores, and
xs_udp_do_set_buffer_size() invokes sk->sk_write_space via a plain
load. These callback pointers are shared with generic socket and
protocol paths that may read or invoke them concurrently, so xprtsock
needs the same READ_ONCE()/WRITE_ONCE() callback visibility contract
that the validated 4022 family applied elsewhere.

When SUNRPC takes over an AF_LOCAL, UDP, or TCP socket and later
restores the lower-socket callbacks during teardown, another CPU may
still hold an earlier callback snapshot. The plain replace/restore
pattern leaves the same visibility hole as the validated 4022 family,
so a stale snapshot can still invoke xs_data_ready() or
xs_udp_write_space() after the live callback fields have already been
restored to the lower-socket handlers.

Use WRITE_ONCE() for the shared sk_data_ready and sk_write_space
stores in xs_local_finish_connecting(), xs_udp_finish_connecting(),
xs_tcp_finish_connecting(), and xs_restore_old_callbacks(). Use
READ_ONCE() for the direct sk_write_space invocation in
xs_udp_do_set_buffer_size(). This matches the required callback
visibility contract while leaving adjacent sk_state_change and
sk_error_report handling unchanged.

(As written by CVE List.)

## Affected

- Linux Linux: from a246b0105bbd9a70a698f69baae2042996f2a0e9 before 6b79b5a0f1c566f0aa6e08c7981826015a0acc4d; from a246b0105bbd9a70a698f69baae2042996f2a0e9 before ed80d009b154aa204f541d390884851b3d4f15ae; from a246b0105bbd9a70a698f69baae2042996f2a0e9 before 589f761236e05ff9de1bdfd6a5258f113e6457fe; from a246b0105bbd9a70a698f69baae2042996f2a0e9 before da652cb17f9faeea1fa44b7215e8869a0b10b664; from a246b0105bbd9a70a698f69baae2042996f2a0e9 before d8f0b83753809761a560c4b33249388548ba6e43; from a246b0105bbd9a70a698f69baae2042996f2a0e9 before 33930840b5f0a79f826e7c69dc6cd78f72a67481; 2.6.15 (not affected: before 2.6.15; from 6.1.191 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.110 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/6b79b5a0f1c566f0aa6e08c7981826015a0acc4d>
- <https://git.kernel.org/stable/c/ed80d009b154aa204f541d390884851b3d4f15ae>
- <https://git.kernel.org/stable/c/589f761236e05ff9de1bdfd6a5258f113e6457fe>
- <https://git.kernel.org/stable/c/da652cb17f9faeea1fa44b7215e8869a0b10b664>
- <https://git.kernel.org/stable/c/d8f0b83753809761a560c4b33249388548ba6e43>
- <https://git.kernel.org/stable/c/33930840b5f0a79f826e7c69dc6cd78f72a67481>

## Sources

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

---

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