{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-23138",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-23138",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-04-16T14:13:17.866Z",
    "updatedAt": "2026-05-23T15:58:00.391Z",
    "importedAt": "2026-10-24T01:57:29.455Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "watch_queue: fix pipe accounting mismatch",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nwatch_queue: fix pipe accounting mismatch\n\nCurrently, watch_queue_set_size() modifies the pipe buffers charged to\nuser->pipe_bufs without updating the pipe->nr_accounted on the pipe\nitself, due to the if (!pipe_has_watch_queue()) test in\npipe_resize_ring(). This means that when the pipe is ultimately freed,\nwe decrement user->pipe_bufs by something other than what than we had\ncharged to it, potentially leading to an underflow. This in turn can\ncause subsequent too_many_pipe_buffers_soft() tests to fail with -EPERM.\n\nTo remedy this, explicitly account for the pipe usage in\nwatch_queue_set_size() to match the number set via account_pipe_buffers()\n\n(It's unclear why watch_queue_set_size() does not update nr_accounted;\nit may be due to intentional overprovisioning in watch_queue_set_size()?)",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "162ae0e78bdabf84ef10c1293c4ed7865cb7d3c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8658c75343ed00e5e154ebbe24335f51ba8db547"
            },
            {
              "version": "3efbd114b91525bb095b8ae046382197d92126b9",
              "status": "affected",
              "versionType": "git",
              "lessThan": "471c89b7d4f58bd6082f7c1fe14d4ca15c7f1284"
            },
            {
              "version": "b87a1229d8668fbc78ebd9ca0fc797a76001c60f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d40e3537265dea9e3c33021874437ff26dc18787"
            },
            {
              "version": "68e51bdb1194f11d3452525b99c98aff6f837b24",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6dafa27764183738dc5368b669b71e3d0d154f12"
            },
            {
              "version": "e95aada4cb93d42e25c30a0ef9eb2923d9711d4a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "56ec918e6c86c1536870e4373e91eddd0c44245f"
            },
            {
              "version": "e95aada4cb93d42e25c30a0ef9eb2923d9711d4a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2d680b988656bb556c863d8b46d9b9096842bf3d"
            },
            {
              "version": "e95aada4cb93d42e25c30a0ef9eb2923d9711d4a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "205028ebba838938d3b264dda1d0708fa7fe1ade"
            },
            {
              "version": "e95aada4cb93d42e25c30a0ef9eb2923d9711d4a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f13abc1e8e1a3b7455511c4e122750127f6bc9b0"
            },
            {
              "version": "6fb70694f8d1ac34e45246b0ac988f025e1e5b55",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "5.10.210",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.10.236"
            },
            {
              "version": "5.15.149",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.15.180"
            },
            {
              "version": "6.1.76",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.1.134"
            },
            {
              "version": "6.6.15",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.6.87"
            },
            {
              "version": "6.7.3",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.8"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "6.8",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "6.8"
            },
            {
              "version": "5.10.236",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.180",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.134",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.87",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.23",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.13.11",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.13.*"
            },
            {
              "version": "6.14.2",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.14.*"
            },
            {
              "version": "6.15",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}