CVE-2026-23218 gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()

Medium 5.5 Published Updated

A null pointer dereference in the Loongson GPIO driver can cause a kernel crash, leading to denial of service.

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-2026-23218?

CVE-2026-23218 is a medium-severity vulnerability in Linux kernel, published on 18 Feb 2026. 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: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()

Fix incorrect NULL check in loongson_gpio_init_irqchip(). The function checks chip->parent instead of chip->irq.parents.

Weakness: CWE-476

Which versions are affected by CVE-2026-23218?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-23218?

Apply the vendor's patch.

Is CVE-2026-23218 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2026-23218, DEBIAN-CVE-2026-23218, GHSA-mx8g-qc6m-wcmf, UBUNTU-CVE-2026-23218.

Is CVE-2026-23218 in your software?

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

Check your SBOMs for free