CVE-2021-47457

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47457
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47457.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47457
Related
Published
2024-05-22T07:15:10Z
Modified
2024-09-18T03:17:28.300914Z
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

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.84-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1
5.10.70-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.16-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.16-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}