CVE-2026-31474

Source
https://cve.org/CVERecord?id=CVE-2026-31474
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31474.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31474
Downstream
Related
Published
2026-04-22T13:54:03.100Z
Modified
2026-06-23T15:29:21.482524914Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
can: isotp: fix tx.buf use-after-free in isotp_sendmsg()
Details

In the Linux kernel, the following vulnerability has been resolved:

can: isotp: fix tx.buf use-after-free in isotp_sendmsg()

isotpsendmsg() uses only cmpxchg() on so->tx.state to serialize access to so->tx.buf. isotprelease() waits for ISOTPIDLE via waitevent_interruptible() and then calls kfree(so->tx.buf).

If a signal interrupts the waiteventinterruptible() inside close() while tx.state is ISOTPSENDING, the loop exits early and release proceeds to force ISOTPSHUTDOWN and continues to kfree(so->tx.buf) while sendmsg may still be reading so->tx.buf for the final CAN frame in isotpfilldataframe().

The so->tx.buf can be allocated once when the standard tx.buf length needs to be extended. Move the kfree() of this potentially extended tx.buf to skdestruct time when either isotpsendmsg() and isotp_release() are done.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31474.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
96d1c81e6a0478535342dff6c730adb076cd84e8
Fixed
cb3d6efa78460e6d50bf68806d0db66265709f64
Fixed
9649d051e54413049c009638ec1dc23962c884a4
Fixed
eec8a1b18a79600bd4419079dc0026c1db72a830
Fixed
2e62e7051eca75a7f2e3d52d62ec10d7d7aa358c
Fixed
424e95d62110cdbc8fd12b40918f37e408e35a92

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31474.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.4.0
Fixed
6.6.131
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.80
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.21
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.11

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31474.json"