{
  "cveId": "CVE-2025-40306",
  "url": "https://patchblox.com/security/cve/CVE-2025-40306",
  "summary": "CVE-2025-40306 is fixed in 19 products on 1 platform, first by DEBIAN-CVE-2025-40306, released December 8, 2025. It is not reported as exploited. Patch Radar priority: High.",
  "title": "orangefs: fix xattr related buffer overflow...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  orangefs: fix xattr related buffer overflow...  Willy Tarreau \u003Cw@1wt.eu\u003E forwarded me a message from Disclosure \u003Cdisclosure@aisle.com\u003E with the following warning:  \u003E The helper \u0060xattr_key()\u0060 uses the pointer variable in the loop condition \u003E rather than dereferencing it. As \u0060key\u0060 is incremented, it remains non-NULL \u003E (until it runs into unmapped memory), so the loop does not terminate on \u003E valid C strings and will walk memory indefinitely, consuming CPU or hanging \u003E the thread.  I easily reproduced this with setfattr and getfattr, causing a kernel oops, hung user processes and corrupted orangefs files. Disclosure sent along a diff (not a patch) with a suggested fix, which I based this patch on.  After xattr_key started working right, xfstest generic/069 exposed an xattr related memory leak that lead to OOM. xattr_key returns a hashed key.  When adding xattrs to the orangefs xattr cache, orangefs used hash_add, a kernel hashing macro. hash_add also hashes the key using hash_log which resulted in additions to the xattr cache going to the wrong hash bucket. generic/069 tortures a single file and orangefs does a getattr for the xattr \u0022security.capability\u0022 every time. Orangefs negative caches on xattrs which includes a kmalloc. Since adds to the xattr cache were going to the wrong bucket, every getattr for \u0022security.capability\u0022 resulted in another kmalloc, none of which were ever freed.  I changed the two uses of hash_add to hlist_add_head instead and the memory leak ceased and generic/069 quit throwing furniture.",
  "published": "2025-12-08T01:16:02Z",
  "severity": "Moderate",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
  "epss": 0.00161,
  "epssPercentile": 0.05261,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-40306",
  "fixes": [
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.20.24.1",
      "fix": "SUSE-SU-2026:0281-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0281-1",
      "released": "2026-01-23T16:03:47Z"
    },
    {
      "platform": "linux",
      "product": "kernel-debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1.150600.12.38.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1.150600.12.38.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1.150700.17.19.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6_Update_19",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.13.3.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP7-RT_Update_8",
      "release": "sles 15.7",
      "fixedVersion": "1-150700.1.3.1",
      "fix": "SUSE-SU-2026:0278-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0278-1",
      "released": "2026-01-23T15:08:32Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP7_Update_8",
      "release": "sles 15.7",
      "fixedVersion": "1-150700.15.3.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.20.24.1",
      "fix": "SUSE-SU-2026:0281-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0281-1",
      "released": "2026-01-23T16:03:47Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.20.24.1",
      "fix": "SUSE-SU-2026:0281-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0281-1",
      "released": "2026-01-23T16:03:47Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.84.1",
      "fix": "SUSE-SU-2026:0293-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0293-1",
      "released": "2026-01-26T11:36:42Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 15.7",
      "fixedVersion": "6.4.0-150700.53.28.1",
      "fix": "SUSE-SU-2026:0315-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-0315-1",
      "released": "2026-01-28T14:34:30Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.1.159-1",
      "fix": "DEBIAN-CVE-2025-40306",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-40306",
      "released": "2025-12-08T01:16:02Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.12.63-1",
      "fix": "DEBIAN-CVE-2025-40306",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-40306",
      "released": "2025-12-08T01:16:02Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.17.8-1",
      "fix": "DEBIAN-CVE-2025-40306",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-40306",
      "released": "2025-12-08T01:16:02Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}