CVE-2024-27000 serial: mxs-auart: add spinlock around changing cts state

High 7.8 Published Updated

A missing spinlock in the mxs-auart serial driver causes a race condition, leading to kernel warnings and potential system instability on affected hardware.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-27000?

CVE-2024-27000 is a high-severity vulnerability in Debian Debian Linux, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

serial: mxs-auart: add spinlock around changing cts state

The uart_handle_cts_change() function in serial_core expects the caller to hold uport->lock. For example, I have seen the below kernel splat, when the Bluetooth driver is loaded on an i.MX28 board.

[ 85.119255] ------------[ cut here ]------------ [ 85.124413] WARNING: CPU: 0 PID: 27 at /drivers/tty/serial/serial_core.c:3453 uart_handle_cts_change+0xb4/0xec [ 85.134694] Modules linked in: hci_uart bluetooth ecdh_generic ecc wlcore_sdio configfs [ 85.143314] CPU: 0 PID: 27 Comm: kworker/u3:0 Not tainted 6.6.3-00021-gd62a2f068f92 #1 [ 85.151396] Hardware name: Freescale MXS (Device Tree) [ 85.156679] Workqueue: hci0 hci_power_on [bluetooth] (...) [ 85.191765] uart_handle_cts_change from mxs_auart_irq_handle+0x380/0x3f4 [ 85.198787] mxs_auart_irq_handle from __handle_irq_event_percpu+0x88/0x210 (...)

Which versions are affected by CVE-2024-27000?

It affects 3 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Linux kernel.

How do I fix CVE-2024-27000?

Apply the vendor's patch.

Is CVE-2024-27000 being exploited?

There is no known exploitation of CVE-2024-27000 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-40454, BELL-CVE-2024-27000, DEBIAN-CVE-2024-27000, GHSA-pxvx-632v-2p4v, UBUNTU-CVE-2024-27000.

Is CVE-2024-27000 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free