CVE-2021-47457

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47457
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47457.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-47457
Downstream
Related
Published
2024-05-22T07:15:10Z
Modified
2025-09-29T16:44:09Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

can: isotp: isotpsendmsg(): add result check for waitevent_interruptible()

Using waiteventinterruptible() to wait for complete transmission, but do not check the result of waiteventinterruptible() which can be interrupted. It will result in TX buffer has multiple accessors and the later process interferes with the previous process.

Following is one of the problems reported by syzbot.

============================================================= WARNING: CPU: 0 PID: 0 at net/can/isotp.c:840 isotptxtimerhandler+0x2e0/0x4c0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.0-rc7+ #68 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 04/01/2014 RIP: 0010:isotptxtimerhandler+0x2e0/0x4c0 Call Trace: <IRQ> ? isotpsetsockopt+0x390/0x390 _hrtimerrunqueues+0xb8/0x610 hrtimerrunsoftirq+0x91/0xd0 ? rcureadlockschedheld+0x4d/0x80 _dosoftirq+0xe8/0x553 irqexitrcu+0xf8/0x100 sysvecapictimerinterrupt+0x9e/0xc0 </IRQ> asmsysvecapictimer_interrupt+0x12/0x20

Add result check for waiteventinterruptible() in isotp_sendmsg() to avoid multiple accessers for tx buffer.

References

Affected packages