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

Published

2025-09-09

·

Updated

2026-05-07

·

CVE-2025-39886

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 The Linux kernel contains a flaw related to memory management within the bpf (Berkeley Packet Filter) subsystem. Specifically, the issue arises from calling bpf map kmalloc node() from bpf async init(), potentially leading to locking issues and hardlockups. This can occur when bpf timer init() is called within a BPF program while memory accounting raises a MEMCG MAX event. The problem is addressed by using GFP HIGH instead of GFP ATOMIC in bpf async init(), ensuring that cgroup file notify() is not called when spinning is disallowed during a MEMCG MAX event. The issue was reproduced on bpf-next (b338cf849ec8) by modifying a sample BPF program and adjusting memcg accounting code. Similar variants involving double-acquiring different locks have also been observed.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Stack Overflow

Improper Locking

Weakness Enumeration

Related Identifiers

AZL-67643
AZL-72352
BDU:2025-12704
CVE-2025-39886
ECHO-582A-C1B7-800F
MGASA-2025-0309
MGASA-2025-0310
OESA-2025-2465
OESA-2025-2466
OESA-2025-2467
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8100-1
USN-8125-1
USN-8126-1
USN-8165-1
USN-8261-1

Affected Products

Astra Linux
Debian
Linuxmint
Linux Kernel
Ubuntu