CVE-2023-54269 (GCVE-0-2023-54269)
Vulnerability from cvelistv5
Published
2025-12-30 12:16
Modified
2025-12-30 12:16
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: double free xprt_ctxt while still in use When an RPC request is deferred, the rq_xprt_ctxt pointer is moved out of the svc_rqst into the svc_deferred_req. When the deferred request is revisited, the pointer is copied into the new svc_rqst - and also remains in the svc_deferred_req. In the (rare?) case that the request is deferred a second time, the old svc_deferred_req is reused - it still has all the correct content. However in that case the rq_xprt_ctxt pointer is NOT cleared so that when xpo_release_xprt is called, the ctxt is freed (UDP) or possible added to a free list (RDMA). When the deferred request is revisited for a second time, it will reference this ctxt which may be invalid, and the free the object a second time which is likely to oops. So change svc_defer() to *always* clear rq_xprt_ctxt, and assert that the value is now stored in the svc_deferred_req.
Impacted products
Vendor Product Version
Linux Linux Version: f5e13d700a4d40ccde3d36e383f9247dcb3c1d2d
Version: 773f91b2cf3f52df0d7508fdbf60f37567cdaee4
Version: 773f91b2cf3f52df0d7508fdbf60f37567cdaee4
Version: 773f91b2cf3f52df0d7508fdbf60f37567cdaee4
Version: 11fab500f86403b2ebf6795feeade6e10302e448
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/sunrpc/svc_xprt.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7851771789e87108a92697194105ef0c9307dc5e",
              "status": "affected",
              "version": "f5e13d700a4d40ccde3d36e383f9247dcb3c1d2d",
              "versionType": "git"
            },
            {
              "lessThan": "fd86534872f445f54dc01e7db001e25eadf063a8",
              "status": "affected",
              "version": "773f91b2cf3f52df0d7508fdbf60f37567cdaee4",
              "versionType": "git"
            },
            {
              "lessThan": "e0c648627322a4c7e018e5c7f837c3c03e297dbb",
              "status": "affected",
              "version": "773f91b2cf3f52df0d7508fdbf60f37567cdaee4",
              "versionType": "git"
            },
            {
              "lessThan": "eb8d3a2c809abd73ab0a060fe971d6b9019aa3c1",
              "status": "affected",
              "version": "773f91b2cf3f52df0d7508fdbf60f37567cdaee4",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "11fab500f86403b2ebf6795feeade6e10302e448",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/sunrpc/svc_xprt.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.18"
            },
            {
              "lessThan": "5.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.113",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.30",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.3.*",
              "status": "unaffected",
              "version": "6.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.4",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.113",
                  "versionStartIncluding": "5.15.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.30",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3.4",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.17.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: double free xprt_ctxt while still in use\n\nWhen an RPC request is deferred, the rq_xprt_ctxt pointer is moved out\nof the svc_rqst into the svc_deferred_req.\nWhen the deferred request is revisited, the pointer is copied into\nthe new svc_rqst - and also remains in the svc_deferred_req.\n\nIn the (rare?) case that the request is deferred a second time, the old\nsvc_deferred_req is reused - it still has all the correct content.\nHowever in that case the rq_xprt_ctxt pointer is NOT cleared so that\nwhen xpo_release_xprt is called, the ctxt is freed (UDP) or possible\nadded to a free list (RDMA).\nWhen the deferred request is revisited for a second time, it will\nreference this ctxt which may be invalid, and the free the object a\nsecond time which is likely to oops.\n\nSo change svc_defer() to *always* clear rq_xprt_ctxt, and assert that\nthe value is now stored in the svc_deferred_req."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-30T12:16:00.317Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7851771789e87108a92697194105ef0c9307dc5e"
        },
        {
          "url": "https://git.kernel.org/stable/c/fd86534872f445f54dc01e7db001e25eadf063a8"
        },
        {
          "url": "https://git.kernel.org/stable/c/e0c648627322a4c7e018e5c7f837c3c03e297dbb"
        },
        {
          "url": "https://git.kernel.org/stable/c/eb8d3a2c809abd73ab0a060fe971d6b9019aa3c1"
        }
      ],
      "title": "SUNRPC: double free xprt_ctxt while still in use",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54269",
    "datePublished": "2025-12-30T12:16:00.317Z",
    "dateReserved": "2025-12-30T12:06:44.518Z",
    "dateUpdated": "2025-12-30T12:16:00.317Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-54269\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:16:15.737\",\"lastModified\":\"2025-12-30T13:16:15.737\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nSUNRPC: double free xprt_ctxt while still in use\\n\\nWhen an RPC request is deferred, the rq_xprt_ctxt pointer is moved out\\nof the svc_rqst into the svc_deferred_req.\\nWhen the deferred request is revisited, the pointer is copied into\\nthe new svc_rqst - and also remains in the svc_deferred_req.\\n\\nIn the (rare?) case that the request is deferred a second time, the old\\nsvc_deferred_req is reused - it still has all the correct content.\\nHowever in that case the rq_xprt_ctxt pointer is NOT cleared so that\\nwhen xpo_release_xprt is called, the ctxt is freed (UDP) or possible\\nadded to a free list (RDMA).\\nWhen the deferred request is revisited for a second time, it will\\nreference this ctxt which may be invalid, and the free the object a\\nsecond time which is likely to oops.\\n\\nSo change svc_defer() to *always* clear rq_xprt_ctxt, and assert that\\nthe value is now stored in the svc_deferred_req.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/7851771789e87108a92697194105ef0c9307dc5e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e0c648627322a4c7e018e5c7f837c3c03e297dbb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/eb8d3a2c809abd73ab0a060fe971d6b9019aa3c1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fd86534872f445f54dc01e7db001e25eadf063a8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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…