CVE-2024-42282

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-42282
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42282.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-42282
Downstream
Published
2024-08-17T09:15:09Z
Modified
2024-09-18T01:00:20Z
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:

net: mediatek: Fix potential NULL pointer dereference in dummy net_device handling

Move the freeing of the dummy netdevice from mtkfreedev() to mtkremove().

Previously, if allocnetdevdummy() failed in mtkprobe(), eth->dummydev would be NULL. The error path would then call mtkfreedev(), which in turn called freenetdev() assuming dummydev was allocated (but it was not), potentially causing a NULL pointer dereference.

By moving freenetdev() to mtkremove(), we ensure it's only called when mtkprobe() has succeeded and dummydev is fully allocated. This addresses a potential NULL pointer dereference detected by Smatch[1].

References

Affected packages

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
6.10.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}