CVE-2024-27047: net: phy: fix phy_get_internal_delay accessing an empty array
In the Linux kernel, the following vulnerability has been resolved:
net: phy: fix phygetinternaldelay accessing an empty array
The phygetinternaldelay function could try to access to an empty array in the case that the driver is calling phygetinternaldelay without defining delayvalues and rx-internal-delay-ps or tx-internal-delay-ps is defined to 0 in the device-tree. This will lead to "unable to handle kernel NULL pointer dereference at virtual address 0". To avoid this kernel oops, the test should be delay = 0. As there is already delay < 0 test just before, the test could only be size == 0.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-27047?
CVE-2024-27047 has a moderate severity level due to its potential to cause disruptions in the Linux kernel.
How do I fix CVE-2024-27047?
To fix CVE-2024-27047, upgrade to a patched version of the Linux kernel, such as 5.10.223-1 or later.
Which Linux kernel versions are affected by CVE-2024-27047?
CVE-2024-27047 affects Linux kernel versions from 5.9 to 6.8.2.
What is the disclosure date of CVE-2024-27047?
CVE-2024-27047 was disclosed on April 24, 2024.
What components are impacted by CVE-2024-27047?
CVE-2024-27047 specifically impacts the net: phy component in the Linux kernel.