CVE-2022-50074

apparmor: Fix memleak in aa_simple_write_to_buffer()

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:02 AM UTC
Updated: June 17, 2026 at 05:22 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.17 ≤ v < 4.19.2564.17 ≤ v < 5.10.1384.17 ≤ v < 5.15.634.17 ≤ v < 5.19.44.17 ≤ v < 5.4.2114.17 ≤ v < 6.04.20 ≤ v < 5.4.2115.11 ≤ v < 5.15.635.16 ≤ v < 5.19.45.5 ≤ v < 5.10.1384.17a6a52579e52b55448326db88bd9a5740e7c1a037
Vendor states this is fixed in 417ea9fe972d2654a268ad66e89c8fcae67017c3 (fixed)
Vendor states this is fixed in 6500eb3a48ac221051b1791818a1ac74744ef617 (fixed)
Vendor states this is fixed in 6583edbf459de2e06b9759f264c0ae27e452b97a (fixed)
Vendor states this is fixed in 7db182a2ebeefded86fea542fcc5d6a68bb77f58 (fixed)
Vendor states this is fixed in 8aab4295582eb397a125d2788b829fa62b88dbf7 (fixed)
Vendor states this is fixed in bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 (fixed)
Vendor states this is fixed in 4.17 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 5.10.138 (unaffected)
Vendor states this is fixed in 5.15.63 (unaffected)
Vendor states this is fixed in 5.19.4 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card