CVE-2023-52567 serial: 8250_port: Check IRQ data before use

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel 8250 serial driver causes a system crash when IRQ polling is used with specific hardware interrupt states.

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-2023-52567?

CVE-2023-52567 is a medium-severity vulnerability in Linux kernel, published on 2 Mar 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: 8250_port: Check IRQ data before use

In case the leaf driver wants to use IRQ polling (irq = 0) and IIR register shows that an interrupt happened in the 8250 hardware the IRQ data can be NULL. In such a case we need to skip the wake event as we came to this path from the timer interrupt and quite likely system is already awake.

Without this fix we have got an Oops:

serial8250: ttyS0 at I/O 0x3f8 (irq = 0, base_baud = 115200) is a 16550A ... BUG: kernel NULL pointer dereference, address: 0000000000000010 RIP: 0010:serial8250_handle_irq+0x7c/0x240 Call Trace: ? serial8250_handle_irq+0x7c/0x240 ? __pfx_serial8250_timeout+0x10/0x10

Weakness: CWE-476

Which versions are affected by CVE-2023-52567?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52567?

Apply the vendor's patch.

Is CVE-2023-52567 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52567, DEBIAN-CVE-2023-52567, GHSA-68m6-x9cq-fjwx, UBUNTU-CVE-2023-52567.

Is CVE-2023-52567 in your software?

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

Check your SBOMs for free