Skip to content
Heist/ feed
Critical

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-90235

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-90235

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
        "lessThan": "ed80d009b154aa204f541d390884851b3d4f15ae",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
        "lessThan": "589f761236e05ff9de1bdfd6a5258f113e6457fe",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
        "lessThan": "da652cb17f9faeea1fa44b7215e8869a0b10b664",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
        "lessThan": "d8f0b83753809761a560c4b33249388548ba6e43",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
        "lessThan": "33930840b5f0a79f826e7c69dc6cd78f72a67481",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/sunrpc/xprtsock.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.157",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.110",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.52",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.6",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/sunrpc/xprtsock.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-90235

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#36603 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement