PT-2025-9001 · Linux+4 · Linux Kernel+4

Zijun Hu

·

Published

2025-01-05

·

Updated

2026-04-20

·

CVE-2025-21810

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A potential wild pointer dereferences issue exists in the Linux kernel regarding the APIs class dev iter init(), class dev iter next(), and class dev iter exit(). The issue arises when the class dev iter init() function does not initialize its output parameter @iter and returns void, allowing the caller to continue invoking class dev iter next(@iter) even if @iter still contains wild pointers. This can lead to dereferences of these wild pointers, causing errors. The issue is resolved by initializing the output parameter @iter by memset() in class dev iter init() and prompting callers of errors by pr crit(). Additionally, class dev iter next() now checks if @iter is valid.
Recommendations For the Linux kernel, to resolve this issue, apply the fix that initializes the output parameter @iter by memset() in class dev iter init() and implements error checking in class dev iter next(). As a temporary workaround, consider adding manual checks for the validity of @iter before invoking class dev iter next() to minimize the risk of exploitation.

Exploit

Fix

NULL Pointer Dereference

Improper Initialization

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-12249
CVE-2025-21810
OESA-2025-1339
OESA-2025-1340
OPENSUSE-SU-2025_1177-1
OPENSUSE-SU-2025_1178-1
OPENSUSE-SU-2025_1180-1
SUSE-SU-2025:01919-1
SUSE-SU-2025:1177-1
SUSE-SU-2025:1178-1
SUSE-SU-2025:1180-1
SUSE-SU-2025:20190-1
SUSE-SU-2025:20192-1
SUSE-SU-2025:20260-1
SUSE-SU-2025:20270-1
SUSE-SU-2025_1177-1
SUSE-SU-2025_1178-1
SUSE-SU-2025_1180-1
USN-7521-1
USN-7521-2
USN-7521-3
USN-7651-1
USN-7651-2
USN-7651-3
USN-7651-4
USN-7651-5
USN-7651-6
USN-7652-1
USN-7653-1
USN-7737-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Suse
Ubuntu