Menu

Star on GitHub · 3.2k

CVE-2025-21810

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: driver core: class: Fix wild pointer dereferences in API class_dev_iter_next() There are a potential wild pointer dereferences…

Published Feb 27, 2025CWE-476EPSS 0.20%

Overview

CVE-2025-21810 is a high-severity vulnerability. It was published on February 27, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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: class: Fix wild pointer dereferences in API class_dev_iter_next()

There are a potential wild pointer dereferences issue regarding APIs

class_dev_iter_(init|next|exit)(), as explained by below typical usage:

// All members of @iter are wild pointers.

struct class_dev_iter iter;

// class_dev_iter_init(@iter, @class, ...) checks parameter @class for

// potential class_to_subsys() error, and it returns void type and does

// not initialize its output parameter @iter, so caller can not detect

// the error and continues to invoke class_dev_iter_next(@iter) even if

// @iter still contains wild pointers.

class_dev_iter_init(&iter, ...);

// Dereference these wild pointers in @iter here once suffer the error.

while (dev = class_dev_iter_next(&iter)) { ... };

// Also dereference these wild pointers here.

class_dev_iter_exit(&iter);

Actually, all callers of these APIs have such usage pattern in kernel tree.

Fix

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-2025-21810?

CVE-2025-21810 is a high-severity vulnerability. It was published on February 27, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-21810?

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

How do I fix or remediate CVE-2025-21810?

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-2025-21810?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-21810 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 HIGH CVEs from 2025

View all