Bug 1223727 (CVE-2024-26942) - VUL-0: CVE-2024-26942: kernel: net: phy: qcom: at803x: kernel panic with at8031_probe
Summary: VUL-0: CVE-2024-26942: kernel: net: phy: qcom: at803x: kernel panic with at80...
Status: RESOLVED FIXED
Alias: CVE-2024-26942
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/403711/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26942:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-02 12:07 UTC by SMASH SMASH
Modified: 2024-06-10 12:20 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-02 12:07:54 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26942
https://www.cve.org/CVERecord?id=CVE-2024-26942
https://git.kernel.org/stable/c/6a4aee277740d04ac0fd54cfa17cc28261932ddc
https://git.kernel.org/stable/c/a8a296ad9957b845b89bcf48be1cf8c74875ecc3
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-26942.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2278214
Comment 2 Gabriele Sonnu 2024-06-10 12:20:33 UTC
All done, closing.