CVE-2026-90235 (GCVE-0-2026-90235)
Vulnerability from cvelistv5
Published
2026-09-17 16:07
Modified
2026-10-19 09:00
Severity ?
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: a246b0105bbd9a70a698f69baae2042996f2a0e9
Version: a246b0105bbd9a70a698f69baae2042996f2a0e9
Version: a246b0105bbd9a70a698f69baae2042996f2a0e9
Version: a246b0105bbd9a70a698f69baae2042996f2a0e9
Version: a246b0105bbd9a70a698f69baae2042996f2a0e9
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/sunrpc/xprtsock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ed80d009b154aa204f541d390884851b3d4f15ae",
              "status": "affected",
              "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
              "versionType": "git"
            },
            {
              "lessThan": "589f761236e05ff9de1bdfd6a5258f113e6457fe",
              "status": "affected",
              "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
              "versionType": "git"
            },
            {
              "lessThan": "da652cb17f9faeea1fa44b7215e8869a0b10b664",
              "status": "affected",
              "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
              "versionType": "git"
            },
            {
              "lessThan": "d8f0b83753809761a560c4b33249388548ba6e43",
              "status": "affected",
              "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
              "versionType": "git"
            },
            {
              "lessThan": "33930840b5f0a79f826e7c69dc6cd78f72a67481",
              "status": "affected",
              "version": "a246b0105bbd9a70a698f69baae2042996f2a0e9",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/sunrpc/xprtsock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.15"
            },
            {
              "lessThan": "2.6.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.157",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.110",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.52",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.157",
                  "versionStartIncluding": "2.6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.110",
                  "versionStartIncluding": "2.6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.52",
                  "versionStartIncluding": "2.6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.6",
                  "versionStartIncluding": "2.6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "2.6.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsunrpc: xprtsock: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE\n\nxprtsock replaces and restores sk-\u003esk_data_ready and\nsk-\u003esk_write_space on live sockets with plain stores, and\nxs_udp_do_set_buffer_size() invokes sk-\u003esk_write_space via a plain\nload. These callback pointers are shared with generic socket and\nprotocol paths that may read or invoke them concurrently, so xprtsock\nneeds the same READ_ONCE()/WRITE_ONCE() callback visibility contract\nthat the validated 4022 family applied elsewhere.\n\nWhen SUNRPC takes over an AF_LOCAL, UDP, or TCP socket and later\nrestores the lower-socket callbacks during teardown, another CPU may\nstill hold an earlier callback snapshot. The plain replace/restore\npattern leaves the same visibility hole as the validated 4022 family,\nso a stale snapshot can still invoke xs_data_ready() or\nxs_udp_write_space() after the live callback fields have already been\nrestored to the lower-socket handlers.\n\nUse WRITE_ONCE() for the shared sk_data_ready and sk_write_space\nstores in xs_local_finish_connecting(), xs_udp_finish_connecting(),\nxs_tcp_finish_connecting(), and xs_restore_old_callbacks(). Use\nREAD_ONCE() for the direct sk_write_space invocation in\nxs_udp_do_set_buffer_size(). This matches the required callback\nvisibility contract while leaving adjacent sk_state_change and\nsk_error_report handling unchanged."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - NFSv4.0 SETCLIENTID/SETCLIENTID_CONFIRM (nfsd4_setclientid \u2192 gen_callback \u2192 setup_callback_client with XPRT_TRANSPORT_TCP) makes nfsd run xs_tcp_finish_connecting; the peer\u0027s callback TCP segments hit READ_ONCE(sk_data_ready) in tcp_data_queue and READ_ONCE(sk_write_space) in sock_wfree. NFS client RPC-over-TCP/UDP replies use the same xprtsock callbacks.\nAC:L - The attacker drives both sides: SETCLIENTID_CONFIRM then a later SETCLIENTID or TCP RST forces xs_tcp_finish_connecting versus xs_restore_old_callbacks (nfsd4_process_cb_update \u2192 rpc_shutdown_client \u2192 xs_reset_transport), while concurrent callback replies and TX skb frees take sock_wfree\u0027s lockless sk_write_space snapshot. The race is retryable on new callback sockets.\nPR:N - SETCLIENTID and SETCLIENTID_CONFIRM are ALLOWED_WITHOUT_FH. Typical nfsd deployments accept AUTH_SYS/AUTH_NULL, so a remote peer that can reach TCP/2049 needs no local account or capability on the NFS server to create and tear down the callback xprtsock.\nUI:N - The attacker sends SETCLIENTID/SETCLIENTID_CONFIRM and the callback-channel TCP segments itself. No victim mount or other interactive action is required beyond nfsd already serving NFSv4.0.\nS:U - Stale xs_data_ready or xs_udp_write_space running against a torn-down sock_xprt corrupts kernel memory on the host that owns the RPC socket. This is not a guest-to-host, IOMMU, or other cross-authority escape.\nC:H - A stale xs_data_ready after xs_restore_old_callbacks can still see a non-NULL sk_user_data via xprt_from_sock and call transport-\u003eold_data_ready plus read sock_xprt fields, leaking kernel heap once that xprt is reused or freed.\nI:H - The same callback/user_data desync lets xs_write_space queue_work on a freed recv_worker/error_worker and decrement sk_write_pending while xs_reset_transport is in __fput_sync, giving an arbitrary kernel write and control-flow hijack.\nA:H - Use-after-free of sock_xprt in xs_data_ready, xs_udp_write_space, or xs_tcp_write_space from sock_wfree or tcp_data_queue after xs_restore_old_callbacks oopses or panics the kernel even without a full write primitive."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T09:00:11.578Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ed80d009b154aa204f541d390884851b3d4f15ae"
        },
        {
          "url": "https://git.kernel.org/stable/c/589f761236e05ff9de1bdfd6a5258f113e6457fe"
        },
        {
          "url": "https://git.kernel.org/stable/c/da652cb17f9faeea1fa44b7215e8869a0b10b664"
        },
        {
          "url": "https://git.kernel.org/stable/c/d8f0b83753809761a560c4b33249388548ba6e43"
        },
        {
          "url": "https://git.kernel.org/stable/c/33930840b5f0a79f826e7c69dc6cd78f72a67481"
        }
      ],
      "title": "sunrpc: xprtsock: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-90235",
    "datePublished": "2026-09-17T16:07:41.251Z",
    "dateReserved": "2026-09-11T19:38:34.794Z",
    "dateUpdated": "2026-10-19T09:00:11.578Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…