Linux Kernel PM Usage Count Vulnerability in Serial Console Handover

Vulnerability

A vulnerability in the Linux kernel's handling of power management (PM) usage counts during serial console transitions has been addressed. The issue arises in the univ8250_console_setup() function, which calls serial8250_console_setup() before the device (.dev) is assigned to the uart_port. This sequence prevents the necessary pm_runtime_get_sync() call from being made. When the driver later takes over, univ8250_console_exit() is invoked, but since the usage count is already at zero, it triggers a PM usage count underflow warning. The vulnerability affects the console management of serial ports, particularly with the univ8250 and 8250 drivers.

Impact

The vulnerability causes a runtime power management usage count underflow, which can lead to improper management of device power states.

Remediation

The vulnerability has been fixed by adjusting the pm_runtime_get_sync() call in the serial8250_register_ports() function to occur after the .dev is set for an uart_port with an enabled console.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.