PT-2025-4339 · Linux+5 · Linux Kernel+5

Syzbot

·

Published

2025-01-06

·

Updated

2026-05-26

·

CVE-2025-21658

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 versions prior to 6.6
Description A vulnerability in the Linux kernel has been resolved, which avoids a NULL pointer dereference if no valid extent tree is present. The issue was reported by Syzbot, which triggered a crash with a specific call trace. The problem occurs when the scrub find fill first stripe() function relies on a non-empty extent root, but unfortunately, it does not expect a NULL pointer for the extent root, leading to a NULL pointer dereference. The vulnerability is caused by a corrupted image where the extent tree root is corrupted, forcing the use of the "rescue=all,ro" mount option to mount the image.
Recommendations For Linux kernel versions prior to 6.6, the fix will need a manual backport. Add an extra check for a valid extent root at the beginning of scrub find fill first stripe(). As a temporary workaround, consider disabling the scrub find fill first stripe() function until a patch is available. Restrict access to the vulnerable btrfs module to minimize the risk of exploitation. Avoid using the rescue=all,ro mount option until the issue is resolved.

Exploit

Fix

NULL Pointer Dereference

Weakness Enumeration

Related Identifiers

ALT-PU-2025-12647
ALT-PU-2025-1925
ALT-PU-2025-1980
ALT-PU-2025-3467
ALT-PU-2025-3500
AZL-55907
AZL-55913
BDU:2025-15372
CVE-2025-21658
ECHO-EA31-593A-2737
MGASA-2025-0030
MGASA-2025-0032
OESA-2025-1093
OESA-2025-1097
SUSE-SU-2025:02249-1
SUSE-SU-2025:02254-1
SUSE-SU-2025:02307-1
SUSE-SU-2025:02333-1
SUSE-SU-2025:02335-1
SUSE-SU-2025:02538-1
SUSE-SU-2025:02923-1
SUSE-SU-2025:20475-1
SUSE-SU-2025:20483-1
SUSE-SU-2025:20493-1
SUSE-SU-2025:20498-1
SUSE-SU-2025_02249-1
SUSE-SU-2025_02254-1
SUSE-SU-2025_02307-1
SUSE-SU-2025_02333-1
SUSE-SU-2025_02335-1
SUSE-SU-2025_02538-1
SUSE-SU-2026:0474-1
SUSE-SU-2026:0496-1
SUSE-SU-2026:0617-1
SUSE-SU-2026:1131-1
USN-7379-1
USN-7379-2
USN-7380-1
USN-7381-1
USN-7382-1
USN-7513-1
USN-7513-2
USN-7513-3
USN-7513-4
USN-7513-5
USN-7514-1
USN-7515-1
USN-7515-2
USN-7522-1
USN-7523-1
USN-7524-1

Affected Products

Alt Linux
Debian
Linuxmint
Linux Kernel
Suse
Ubuntu