CVE-2023-52457: serial: 8250: omap: Don't skip resource freeing if pm_runtime_resume_and_get() failed
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250: omap: Don't skip resource freeing if pmruntimeresumeandget() failed
Returning an error code from .remove() makes the driver core emit the little helpful error message:
remove callback returned a non-zero value. This will be ignored.
and then remove the device anyhow. So all resources that were not freed are leaked in this case. Skipping serial8250unregisterport() has the potential to keep enough of the UART around to trigger a use-after-free.
So replace the error return (and with it the little helpful error message) by a more useful error message and continue to cleanup.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-52457?
CVE-2023-52457 has not been assigned a specific severity level, but it relates to resource management issues in the Linux kernel.
How do I fix CVE-2023-52457?
To fix CVE-2023-52457, you should update to the latest stable version of the Linux kernel that includes the relevant patches.
Which versions of the Linux kernel are affected by CVE-2023-52457?
CVE-2023-52457 affects Linux kernel versions between 5.4.225 and 5.4.268, 5.10.156 and 5.10.209, 5.15.80 and 5.15.148, 6.0.10 and 6.1.75, 6.2 and 6.6.14, and 6.7 and 6.7.2.
What kind of vulnerability is CVE-2023-52457?
CVE-2023-52457 is related to improper resource management in the serial driver for OMAP in the Linux kernel.
Is there a known exploit for CVE-2023-52457?
As of now, there is no publicly known exploit for CVE-2023-52457 that targets this specific vulnerability in the Linux kernel.