{
  "id": "CVE-2025-39835",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39835",
  "published_at": "2025-09-16T13:08:51.599Z",
  "title": "xfs: do not propagate ENODATA disk errors into xattr code",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: do not propagate ENODATA disk errors into xattr code\n\nENODATA (aka ENOATTR) has a very specific meaning in the xfs xattr code;\nnamely, that the requested attribute name could not be found.\n\nHowever, a medium error from disk may also return ENODATA. At best,\nthis medium error may escape to userspace as \"attribute not found\"\nwhen in fact it's an IO (disk) error.\n\nAt worst, we may oops in xfs_attr_leaf_get() when we do:\n\n\terror = xfs_attr_leaf_hasname(args, \u0026bp);\n\tif (error == -ENOATTR)  {\n\t\txfs_trans_brelse(args-\u003etrans, bp);\n\t\treturn error;\n\t}\n\nbecause an ENODATA/ENOATTR error from disk leaves us with a null bp,\nand the xfs_trans_brelse will then null-deref it.\n\nAs discussed on the list, we really need to modify the lower level\nIO functions to trap all disk errors and ensure that we don't let\nunique errors like this leak up into higher xfs functions - many\nlike this should be remapped to EIO.\n\nHowever, this patch directly addresses a reported bug in the xattr\ncode, and should be safe to backport to stable kernels. A larger-scope\npatch to handle more unique errors at lower levels can follow later.\n\n(Note, prior to 07120f1abdff we did not oops, but we did return the\nwrong error code to userspace.)",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 07120f1abdff80f3d1351f733661abe28d609535, \u003c 157ddfb05961c68ab7d457a462822a698e4e4bf4",
          "\u003e= 07120f1abdff80f3d1351f733661abe28d609535, \u003c 90bae69c2959c39912f0c2f07a9a7894f3fc49f5",
          "\u003e= 07120f1abdff80f3d1351f733661abe28d609535, \u003c e358d4b6225e4c1eb208686a05e360ef8df59e07",
          "\u003e= 07120f1abdff80f3d1351f733661abe28d609535, \u003c d3cc7476b89fb45b7e00874f4f56f6b928467c60",
          "\u003e= 07120f1abdff80f3d1351f733661abe28d609535, \u003c dcdf36f1b67884c722abce9b8946e34ffb9f67c8",
          "\u003e= 07120f1abdff80f3d1351f733661abe28d609535, \u003c 39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8",
          "\u003e= 07120f1abdff80f3d1351f733661abe28d609535, \u003c ae668cd567a6a7622bc813ee0bb61c42bed61ba7"
        ],
        "fixed_in": [
          "157ddfb05961c68ab7d457a462822a698e4e4bf4",
          "90bae69c2959c39912f0c2f07a9a7894f3fc49f5",
          "e358d4b6225e4c1eb208686a05e360ef8df59e07",
          "d3cc7476b89fb45b7e00874f4f56f6b928467c60",
          "dcdf36f1b67884c722abce9b8946e34ffb9f67c8",
          "39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8",
          "ae668cd567a6a7622bc813ee0bb61c42bed61ba7"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.9"
        ],
        "fixed_in": [
          "0",
          "5.10.242",
          "5.15.191",
          "6.1.150",
          "6.6.104",
          "6.12.45",
          "6.16.5",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 157ddfb05961c68ab7d457a462822a698e4e4bf4 or 90bae69c2959c39912f0c2f07a9a7894f3fc49f5 or e358d4b6225e4c1eb208686a05e360ef8df59e07 or d3cc7476b89fb45b7e00874f4f56f6b928467c60 or dcdf36f1b67884c722abce9b8946e34ffb9f67c8 or 39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8 or ae668cd567a6a7622bc813ee0bb61c42bed61ba7 or later.",
      "Upgrade Linux to 0 or 5.10.242 or 5.15.191 or 6.1.150 or 6.6.104 or 6.12.45 or 6.16.5 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
