CVE-2024-46706

Source
https://cve.org/CVERecord?id=CVE-2024-46706
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46706.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46706
Downstream
Related
Published
2024-09-13T06:27:33.085Z
Modified
2026-05-15T11:54:46.283297762Z
Summary
tty: serial: fsl_lpuart: mark last busy before uart_add_one_port
Details

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

tty: serial: fsllpuart: mark last busy before uartaddoneport

With "earlycon initcall_debug=1 loglevel=8" in bootargs, kernel sometimes boot hang. It is because normal console still is not ready, but runtime suspend is called, so early console putchar will hang in waiting TRDE set in UARTSTAT.

The lpuart driver has auto suspend delay set to 3000ms, but during uartaddoneport, a child device serial ctrl will added and probed with its pm runtime enabled(see serialctrl.c). The runtime suspend call path is: deviceadd |-> busprobedevice |->deviceinitial_probe |->__deviceattach |-> pmruntimegetsync(dev->parent); |-> pmrequestidle(dev); |-> pmruntimeput(dev->parent);

So in the end, before normal console ready, the lpuart get runtime suspended. And earlycon putchar will hang.

To address the issue, mark last busy just after pmruntimeenable, three seconds is long enough to switch from bootconsole to normal console.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46706.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.48
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.7

Database specific

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