CVE-2026-46258 gpio: cdev: Avoid NULL dereference in linehandle_create()

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel GPIO character device driver can cause a system 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-46258?

CVE-2026-46258 is a medium-severity vulnerability in Linux kernel, published on 3 Jun 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: cdev: Avoid NULL dereference in linehandle_create()

In linehandle_create(), there is a statement like this: retain_and_null_ptr(lh);

Soon after, there is a debug printout that dereferences "lh", which will crash things.

Avoid the crash by using handlereq.lines, which is the same value.

Weakness: CWE-476

Which versions are affected by CVE-2026-46258?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-46258?

Apply the vendor's patch.

Is CVE-2026-46258 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as GHSA-xf52-gg4r-hj5f, UBUNTU-CVE-2026-46258.

Is CVE-2026-46258 in your software?

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

Check your SBOMs for free