Skip to main content
Network Thinking Solutions Logo

CVE-2025-21810

Linux kernel: driver core: class: Fix wild pointer dereferences in API class_dev_iter_next()

All CVEs
CVE-2025-21810Published 2/27/2025

Linux kernel: driver core: class: Fix wild pointer dereferences in API class_dev_iter_next()

Vendor advisory
CVSS7.8High

Overview

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 by: - Initialize output parameter @iter by memset() in class_dev_iter_init() and give callers prompt by pr_crit() for the error. - Check if @iter is valid in class_dev_iter_next().

Published
2/27/2025
Last modified
10/15/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 6.4, < 6.6.76

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.13

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.13.2

Verify advisory

Source
Linux
Linux
≥ 7b884b7f24b42fa25e92ed724ad82f137610afaf, < f4b9bc823b0cfdebfed479c0e87d6939c7562e87

Verify advisory

Source
Linux
Linux
≥ 7b884b7f24b42fa25e92ed724ad82f137610afaf, < 1614e75d1a1b63db6421c7a4bf37004720c7376c

Verify advisory

Source
Linux
Linux
≥ 7b884b7f24b42fa25e92ed724ad82f137610afaf, < 5c504e9767b947cf7d4e29b811c0c8b3c53242b7

Verify advisory

Source
Linux
Linux
≥ 7b884b7f24b42fa25e92ed724ad82f137610afaf, < e128f82f7006991c99a58114f70ef61e937b1ac1

Verify advisory

Source
Linux
Linux
6.4

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.