CVE-2024-26942

Source
https://cve.org/CVERecord?id=CVE-2024-26942
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26942.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26942
Downstream
Published
2024-05-01T05:17:56Z
Modified
2026-08-12T03:51:08Z
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
net: phy: qcom: at803x: fix kernel panic with at8031_probe
Details

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

net: phy: qcom: at803x: fix kernel panic with at8031_probe

On reworking and splitting the at803x driver, in splitting function of at803x PHYs it was added a NULL dereference bug where priv is referenced before it's actually allocated and then is tried to write to for the is_1000basex and is_fiber variables in the case of at8031, writing on the wrong address.

Fix this by correctly setting priv local variable only after at803x_probe is called and actually allocates priv in the phydev struct.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26942.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
25d2ba94005fac18fe68878cddff59a67e115554
Fixed
a8a296ad9957b845b89bcf48be1cf8c74875ecc3
Fixed
6a4aee277740d04ac0fd54cfa17cc28261932ddc

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26942.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26942.json"