Skip to content
Heist/ feed
Back to feed
CriticalFix available

NFSv4.2: Rework scratch handling for READ_PLUS (again)

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.4.16, 6.5.3
CVEs
CVE-2023-53360
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 00:57 UTC · Revision 1

Source evidence

NFSv4.2: Rework scratch handling for READ_PLUS (again)

core-osv · Original source

Published 17 Sept 2025, 14:56 UTC

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.

osv:CVE-2023-53360

Kernel

Fixed versions: 6.4.16, 6.5.3

Complete source record
{
  "id": "8d407046f95a9db13172e24d28122c5a98992da35d4b400b17d3c2506adf1071",
  "url": "https://osv.dev/vulnerability/CVE-2023-53360",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "NFSv4.2: Rework scratch handling for READ_PLUS (again)",
    "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.",
    "evidence": "osv:CVE-2023-53360",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.4.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.5.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2023-53360",
      "aliases": [
        "CVE-2023-53360"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "886959f425b6a936a30b82a297ae3aecb3b8230f"
                },
                {
                  "fixed": "adac9f0ddd2b291c7ce41f549fdb27a13616cff5"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fbd2a05f29a95d5b42b294bf47e55a711424965b"
                },
                {
                  "fixed": "a2f4cb206bd94b3f4a7bb05fcdce9525283b5681"
                },
                {
                  "fixed": "ae5d5672f1db711e91db6f52df5cb16ecd8f5692"
                },
                {
                  "fixed": "303a78052091c81e9003915c521fdca1c7e117af"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53360.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.4.0"
                },
                {
                  "fixed": "6.4.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.5.0"
                },
                {
                  "fixed": "6.5.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53360.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.546933546Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/303a78052091c81e9003915c521fdca1c7e117af",
        "https://git.kernel.org/stable/c/a2f4cb206bd94b3f4a7bb05fcdce9525283b5681",
        "https://git.kernel.org/stable/c/adac9f0ddd2b291c7ce41f549fdb27a13616cff5",
        "https://git.kernel.org/stable/c/ae5d5672f1db711e91db6f52df5cb16ecd8f5692",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53360.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53360",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53360.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53360",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 516795,
  "published_at": "2025-09-17T14:56:50.287+00:00"
}