PT-2025-26145 · Linux+3 · Linux Kernel+3

Published

2020-11-04

·

Updated

2025-06-18

·

CVE-2022-50219

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A Use After Free bug was found in the compute effective progs() function. The issue occurs when a fault is injected into an allocation failure while calling bpf link detach() on a number of BPF links. This triggers the link to be freed, but the memory allocation failure causes the pointer to the bpf cgroup link to be restored and then freed, resulting in a dereferenced already deallocated pointer in prog list length(). This bug was discovered by Syzbot.
Recommendations To fix this issue, do not preserve the pointer to the prog or link in the list, but remove it and replace it with a dummy prog without shrinking the table. The subsequent call to cgroup bpf detach() or cgroup bpf detach() will correct it.

Exploit

Fix

Use After Free

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

Weakness Enumeration

Related Identifiers

CESA-2020_4431
CVE-2022-50219
RHSA-2020:4431
RHSA-2020_4431
RHSA-2023:2458
RHSA-2023_2458

Affected Products

Astra Linux
Centos
Linux Kernel
Red Hat