CVE-2024-56671 gpio: graniterapids: Fix vGPIO driver crash

Medium 5.5 Published Updated

A bug in the Linux kernel GPIO driver causes a crash during bootup due to unauthorized modification of a constant structure field.

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-56671?

CVE-2024-56671 is a medium-severity vulnerability in Linux kernel, published on 27 Dec 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:

gpio: graniterapids: Fix vGPIO driver crash

Move setting irq_chip.name from probe() function to the initialization of "irq_chip" struct in order to fix vGPIO driver crash during bootup.

Crash was caused by unauthorized modification of irq_chip.name field where irq_chip struct was initialized as const.

This behavior is a consequence of suboptimal implementation of gpio_irq_chip_set_chip(), which should be changed to avoid casting away const qualifier.

Crash log: BUG: unable to handle page fault for address: ffffffffc0ba81c0 /#PF: supervisor write access in kernel mode /#PF: error_code(0x0003) - permissions violation CPU: 33 UID: 0 PID: 1075 Comm: systemd-udevd Not tainted 6.12.0-rc6-00077-g2e1b3cc9d7f7 #1 Hardware name: Intel Corporation Kaseyville RP/Kaseyville RP, BIOS KVLDCRB1.PGS.0026.D73.2410081258 10/08/2024 RIP: 0010:gnr_gpio_probe+0x171/0x220 [gpio_graniterapids]

Which versions are affected by CVE-2024-56671?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-56671?

Apply the vendor's patch.

Is CVE-2024-56671 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-56671, DEBIAN-CVE-2024-56671, GHSA-c96h-hhgw-4533, ROOT-OS-UBUNTU-2204-CVE-2024-56671, ROOT-OS-UBUNTU-2404-CVE-2024-56671, UBUNTU-CVE-2024-56671.

Is CVE-2024-56671 in your software?

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

Check your SBOMs for free