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

Sebastian Andrzej Siewior

·

Published

2025-01-17

·

Updated

2026-04-20

·

CVE-2025-21825

CVSS v3.1

4.7

Medium

VectorAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions 5.15 through 6.12
Description A vulnerability in the Linux kernel has been identified, related to the handling of bpf timers. The issue arises when the hrtimer cancel() function attempts to acquire a lock that is already held, leading to a scheduling while atomic bug. This can occur when the bpf timer is cancelled while it is still running, causing a race condition. The vulnerability is specific to systems with PREEMPT RT enabled, which is available in version 6.12 and later. The estimated number of potentially affected devices is not provided.
Recommendations For Linux kernel versions 5.15 through 6.12, apply the patch that fixes the lock problem by breaking the cancelling of bpf timer into two steps for PREEMPT RT. The first step uses hrtimer try to cancel() and checks its return value. If the timer is running, the second step uses hrtimer cancel() through a kworker to cancel it again. This patch is necessary to prevent the scheduling while atomic bug and ensure the stable operation of the system.

Exploit

Fix

Double Free

Unchecked Return Value

Weakness Enumeration

Related Identifiers

AZL-62534
AZL-69488
BDU:2026-03285
CVE-2025-21825
ECHO-80D4-4FF8-9A68
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
Debian
Linuxmint
Linux Kernel
Suse
Ubuntu