CVE-2023-53360 (GCVE-0-2023-53360)
Vulnerability from cvelistv5
Published
2025-09-17 14:56
Modified
2025-09-17 14:56
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: NFSv4.2: Rework scratch handling for READ_PLUS (again) I found that the read code might send multiple requests using the same nfs_pgio_header, but nfs4_proc_read_setup() is only called once. This is how we ended up occasionally double-freeing the scratch buffer, but also means we set a NULL pointer but non-zero length to the xdr scratch buffer. This results in an oops the first time decoding needs to copy something to scratch, which frequently happens when decoding READ_PLUS hole segments. I fix this by moving scratch handling into the pageio read code. I provide a function to allocate scratch space for decoding read replies, and free the scratch buffer when the nfs_pgio_header is freed.
Impacted products
Vendor Product Version
Linux Linux Version: 886959f425b6a936a30b82a297ae3aecb3b8230f
Version: fbd2a05f29a95d5b42b294bf47e55a711424965b
Version: fbd2a05f29a95d5b42b294bf47e55a711424965b
Version: fbd2a05f29a95d5b42b294bf47e55a711424965b
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nfs/internal.h",
            "fs/nfs/nfs42.h",
            "fs/nfs/nfs42xdr.c",
            "fs/nfs/nfs4proc.c",
            "fs/nfs/read.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "adac9f0ddd2b291c7ce41f549fdb27a13616cff5",
              "status": "affected",
              "version": "886959f425b6a936a30b82a297ae3aecb3b8230f",
              "versionType": "git"
            },
            {
              "lessThan": "a2f4cb206bd94b3f4a7bb05fcdce9525283b5681",
              "status": "affected",
              "version": "fbd2a05f29a95d5b42b294bf47e55a711424965b",
              "versionType": "git"
            },
            {
              "lessThan": "ae5d5672f1db711e91db6f52df5cb16ecd8f5692",
              "status": "affected",
              "version": "fbd2a05f29a95d5b42b294bf47e55a711424965b",
              "versionType": "git"
            },
            {
              "lessThan": "303a78052091c81e9003915c521fdca1c7e117af",
              "status": "affected",
              "version": "fbd2a05f29a95d5b42b294bf47e55a711424965b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nfs/internal.h",
            "fs/nfs/nfs42.h",
            "fs/nfs/nfs42xdr.c",
            "fs/nfs/nfs4proc.c",
            "fs/nfs/read.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.4"
            },
            {
              "lessThan": "6.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.5.*",
              "status": "unaffected",
              "version": "6.5.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.6",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.16",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5.3",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6",
                  "versionStartIncluding": "6.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nNFSv4.2: Rework scratch handling for READ_PLUS (again)\n\nI found that the read code might send multiple requests using the same\nnfs_pgio_header, but nfs4_proc_read_setup() is only called once. This is\nhow we ended up occasionally double-freeing the scratch buffer, but also\nmeans we set a NULL pointer but non-zero length to the xdr scratch\nbuffer. This results in an oops the first time decoding needs to copy\nsomething to scratch, which frequently happens when decoding READ_PLUS\nhole segments.\n\nI fix this by moving scratch handling into the pageio read code. I\nprovide a function to allocate scratch space for decoding read replies,\nand free the scratch buffer when the nfs_pgio_header is freed."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-17T14:56:50.287Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/adac9f0ddd2b291c7ce41f549fdb27a13616cff5"
        },
        {
          "url": "https://git.kernel.org/stable/c/a2f4cb206bd94b3f4a7bb05fcdce9525283b5681"
        },
        {
          "url": "https://git.kernel.org/stable/c/ae5d5672f1db711e91db6f52df5cb16ecd8f5692"
        },
        {
          "url": "https://git.kernel.org/stable/c/303a78052091c81e9003915c521fdca1c7e117af"
        }
      ],
      "title": "NFSv4.2: Rework scratch handling for READ_PLUS (again)",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53360",
    "datePublished": "2025-09-17T14:56:50.287Z",
    "dateReserved": "2025-09-17T14:54:09.733Z",
    "dateUpdated": "2025-09-17T14:56:50.287Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53360\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-17T15:15:40.123\",\"lastModified\":\"2025-09-18T13:43:34.310\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nNFSv4.2: Rework scratch handling for READ_PLUS (again)\\n\\nI found that the read code might send multiple requests using the same\\nnfs_pgio_header, but nfs4_proc_read_setup() is only called once. This is\\nhow we ended up occasionally double-freeing the scratch buffer, but also\\nmeans we set a NULL pointer but non-zero length to the xdr scratch\\nbuffer. This results in an oops the first time decoding needs to copy\\nsomething to scratch, which frequently happens when decoding READ_PLUS\\nhole segments.\\n\\nI fix this by moving scratch handling into the pageio read code. I\\nprovide a function to allocate scratch space for decoding read replies,\\nand free the scratch buffer when the nfs_pgio_header is freed.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/303a78052091c81e9003915c521fdca1c7e117af\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a2f4cb206bd94b3f4a7bb05fcdce9525283b5681\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/adac9f0ddd2b291c7ce41f549fdb27a13616cff5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ae5d5672f1db711e91db6f52df5cb16ecd8f5692\",\"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…