CVE-2022-49524

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49524
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49524.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49524
Related
Published
2025-02-26T07:01:28Z
Modified
2025-03-24T20:53:57.203874Z
Downstream
Summary
[none]
Details

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

media: pci: cx23885: Fix the error handling in cx23885_initdev()

When the driver fails to call the dmasetmask(), the driver will get the following splat:

[ 55.853884] BUG: KASAN: use-after-free in _processremoveddriver+0x3c/0x240 [ 55.854486] Read of size 8 at addr ffff88810de60408 by task modprobe/590 [ 55.856822] Call Trace: [ 55.860327] _processremoveddriver+0x3c/0x240 [ 55.861347] busforeachdev+0x102/0x160 [ 55.861681] i2cdel_driver+0x2f/0x50

This is because the driver has initialized the i2c related resources in cx23885devsetup() but not released them in error handling, fix this bug by modifying the error path that jumps after failing to call the dmasetmask().

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.127-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1
5.10.70-1
5.10.84-1
5.10.92-1~bpo10+1
5.10.92-1
5.10.92-2
5.10.103-1~bpo10+1
5.10.103-1
5.10.106-1
5.10.113-1
5.10.120-1~bpo10+1
5.10.120-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.18.5-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.18.5-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}