Menu

Star on GitHub · 3.3k

CVE-2023-54321

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: driver core: fix potential null-ptr-deref in device_add() I got the following null-ptr-deref report while doing fault injection…

Published Dec 30, 2025CWE-476EPSS 0.15%

Overview

CVE-2023-54321 is a medium-severity vulnerability. It was published on December 30, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

driver core: fix potential null-ptr-deref in device_add()

I got the following null-ptr-deref report while doing fault injection test:

BUG: kernel NULL pointer dereference, address: 0000000000000058

CPU: 2 PID: 278 Comm: 37-i2c-ds2482 Tainted: G B W N 6.1.0-rc3+

RIP: 0010:klist_put+0x2d/0xd0

Call Trace:

<TASK>

klist_remove+0xf1/0x1c0

device_release_driver_internal+0x196/0x210

bus_remove_device+0x1bd/0x240

device_add+0xd3d/0x1100

w1_add_master_device+0x476/0x490 [wire]

ds2482_probe+0x303/0x3e0 [ds2482]

This is how it happened:

w1_alloc_dev()

// The dev->driver is set to w1_master_driver.

memcpy(&dev->dev, device, sizeof(struct device));

device_add()

bus_add_device()

dpm_sysfs_add() // It fails, calls bus_remove_device.

// error path

bus_remove_device()

// The dev->driver is not null, but driver is not bound.

__device_release_driver()

klist_remove(&dev->p-

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2023-54321?

CVE-2023-54321 is a medium-severity vulnerability. It was published on December 30, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2023-54321?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2023-54321?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-54321?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2023-54321 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2023

View all
LiveWatch live →