CVE-2022-50074

MEDIUM

Linux Kernel Use-After-Free in aa_simple_write_to_buffer

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix memleak in aa_simple_write_to_buffer() When copy_from_user failed, the memory is freed by kvfree. however the management struct and data blob are allocated independently, so only kvfree(data) cause a memleak issue here. Use aa_put_loaddata(data) to fix this issue.

Scores

CVSS v3 5.5
EPSS 0.0016
EPSS Percentile 5.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (20)
linux/Kernel 4.17.0 - 4.19.256linux
linux/Kernel 4.20.0 - 5.4.211linux
linux/Kernel 5.11.0 - 5.15.63linux
linux/Kernel 5.16.0 - 5.19.4linux
linux/Kernel 5.5.0 - 5.10.138linux
Linux/Linux < 4.17
Linux/Linux 4.17
Linux/Linux 4.19.256 - 4.19.*
Linux/Linux 5.10.138 - 5.10.*
Linux/Linux 5.15.63 - 5.15.*
... and 10 more
Published Jun 18, 2025
Tracked Since Feb 18, 2026