CVE-2023-53360 (GCVE-0-2023-53360)
Vulnerability from cvelistv5
Published
2025-09-17 14:56
Modified
2026-08-05 09:13
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": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2023-53360",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-01-14T18:43:57.674879Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-415",
                "description": "CWE-415 Double Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-01-14T18:53:00.565Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "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."
        }
      ],
      "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 - This is NFS client reply decoding (fs/nfs READ_PLUS): a malicious/compromised NFSv4.2 server or on-path AUTH_SYS attacker drives short reads and resends so the same nfs_pgio_header is reused after scratch is freed, then supplies READ_PLUS XDR that hits xdr_copy_to_scratch over the network.\nAC:L - The server fully controls short-read counts, READ_PLUS hole/data segment layout, and ENOTSUPP/stateid/sequence restarts that force rpc_restart_call_prepare without re-running nfs4_proc_read_setup; CONFIG_NFS_V4_2_READ_PLUS defaults to y, so no condition is outside attacker influence.\nPR:N - Exploitation is from the remote NFS server (or MITM) with no credentials or account on the victim client; decoding runs in the client\u0027s normal READ_PLUS completion path.\nUI:N - An existing NFSv4.2 mount plus routine/background read I/O is enough; the malicious server can wait for ordinary client reads without inducing a distinct victim action at exploit time.\nS:U - The double-free/UAF and resulting corruption stay in the NFS client\u0027s kernel address space within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Before the pointer was nulled, the resend path left a dangling scratch pointer so the next READ_PLUS decode memcpy\u0027d into freed heap (UAF write/read of reclaimed slab); double-free/UAF enables arbitrary kernel disclosure per kernel guidance.\nI:H - The same resend path double-frees the kmalloc scratch (CWE-415) and, while the dangling pointer remains, writes attacker-shaped XDR fragments into reclaimed heap via xdr_copy_to_scratch \u2014 a heap corruption primitive suitable for control-flow hijack.\nA:H - After free-and-NULL, the next decode sets a NULL scratch with non-zero length and oopses on the first xdr_copy_to_scratch (common for READ_PLUS hole segments); double-free also reliably crashes or corrupts the client and is repeatable by the remote server."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:13:39.775Z",
        "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": "2026-08-05T09:13:39.775Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2023-53360\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-01-14T18:43:57.674879Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-415\", \"description\": \"CWE-415 Double Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-01-14T18:43:53.394Z\"}}], \"cna\": {\"title\": \"NFSv4.2: Rework scratch handling for READ_PLUS (again)\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.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\"}}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"886959f425b6a936a30b82a297ae3aecb3b8230f\", \"lessThan\": \"adac9f0ddd2b291c7ce41f549fdb27a13616cff5\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fbd2a05f29a95d5b42b294bf47e55a711424965b\", \"lessThan\": \"a2f4cb206bd94b3f4a7bb05fcdce9525283b5681\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fbd2a05f29a95d5b42b294bf47e55a711424965b\", \"lessThan\": \"ae5d5672f1db711e91db6f52df5cb16ecd8f5692\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fbd2a05f29a95d5b42b294bf47e55a711424965b\", \"lessThan\": \"303a78052091c81e9003915c521fdca1c7e117af\", \"versionType\": \"git\"}], \"programFiles\": [\"fs/nfs/internal.h\", \"fs/nfs/nfs42.h\", \"fs/nfs/nfs42xdr.c\", \"fs/nfs/nfs4proc.c\", \"fs/nfs/read.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.4\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.4\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.4.16\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.4.*\"}, {\"status\": \"unaffected\", \"version\": \"6.5.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.5.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/nfs/internal.h\", \"fs/nfs/nfs42.h\", \"fs/nfs/nfs42xdr.c\", \"fs/nfs/nfs4proc.c\", \"fs/nfs/read.c\"], \"defaultStatus\": \"affected\"}], \"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\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"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.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.4.16\", \"versionStartIncluding\": \"6.4\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.5.3\", \"versionStartIncluding\": \"6.4\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6\", \"versionStartIncluding\": \"6.4\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-04T09:14:19.615Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2023-53360\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-04T09:14:19.615Z\", \"dateReserved\": \"2025-09-17T14:54:09.733Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-09-17T14:56:50.287Z\", \"assignerShortName\": \"Linux\"}",
      "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…