{
  "id": "CVE-2026-31474",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31474",
  "published_at": "2026-04-22T13:54:03.1Z",
  "title": "can: isotp: fix tx.buf use-after-free in isotp_sendmsg()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "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\ncan: isotp: fix tx.buf use-after-free in isotp_sendmsg()\n\nisotp_sendmsg() uses only cmpxchg() on so-\u003etx.state to serialize access\nto so-\u003etx.buf. isotp_release() waits for ISOTP_IDLE via\nwait_event_interruptible() and then calls kfree(so-\u003etx.buf).\n\nIf a signal interrupts the wait_event_interruptible() inside close()\nwhile tx.state is ISOTP_SENDING, the loop exits early and release\nproceeds to force ISOTP_SHUTDOWN and continues to kfree(so-\u003etx.buf)\nwhile sendmsg may still be reading so-\u003etx.buf for the final CAN frame\nin isotp_fill_dataframe().\n\nThe so-\u003etx.buf can be allocated once when the standard tx.buf length needs\nto be extended. Move the kfree() of this potentially extended tx.buf to\nsk_destruct time when either isotp_sendmsg() and isotp_release() are done.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.4:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 96d1c81e6a0478535342dff6c730adb076cd84e8, \u003c cb3d6efa78460e6d50bf68806d0db66265709f64",
          "\u003e= 96d1c81e6a0478535342dff6c730adb076cd84e8, \u003c 9649d051e54413049c009638ec1dc23962c884a4",
          "\u003e= 96d1c81e6a0478535342dff6c730adb076cd84e8, \u003c eec8a1b18a79600bd4419079dc0026c1db72a830",
          "\u003e= 96d1c81e6a0478535342dff6c730adb076cd84e8, \u003c 2e62e7051eca75a7f2e3d52d62ec10d7d7aa358c",
          "\u003e= 96d1c81e6a0478535342dff6c730adb076cd84e8, \u003c 424e95d62110cdbc8fd12b40918f37e408e35a92"
        ],
        "fixed_in": [
          "cb3d6efa78460e6d50bf68806d0db66265709f64",
          "9649d051e54413049c009638ec1dc23962c884a4",
          "eec8a1b18a79600bd4419079dc0026c1db72a830",
          "2e62e7051eca75a7f2e3d52d62ec10d7d7aa358c",
          "424e95d62110cdbc8fd12b40918f37e408e35a92"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.4"
        ],
        "fixed_in": [
          "0",
          "6.6.131",
          "6.12.80",
          "6.18.21",
          "6.19.11",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to cb3d6efa78460e6d50bf68806d0db66265709f64 or 9649d051e54413049c009638ec1dc23962c884a4 or eec8a1b18a79600bd4419079dc0026c1db72a830 or 2e62e7051eca75a7f2e3d52d62ec10d7d7aa358c or 424e95d62110cdbc8fd12b40918f37e408e35a92 or later.",
      "Upgrade Linux to 0 or 6.6.131 or 6.12.80 or 6.18.21 or 6.19.11 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
