CVE-2022-50074
published 2025-06-18CVE-2022-50074: 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…
PriorityP419medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.16%
5.6th percentile
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
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.0.2-1 (bookworm) | linux 6.0.2-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= a6a52579e52b55448326db88bd9a5740e7c1a037 < 6500eb3a48ac221051b1791818a1ac74744ef617 | 6500eb3a48ac221051b1791818a1ac74744ef617 |
| linux | linux | >= a6a52579e52b55448326db88bd9a5740e7c1a037 < 7db182a2ebeefded86fea542fcc5d6a68bb77f58 | 7db182a2ebeefded86fea542fcc5d6a68bb77f58 |
| linux | linux | >= a6a52579e52b55448326db88bd9a5740e7c1a037 < 8aab4295582eb397a125d2788b829fa62b88dbf7 | 8aab4295582eb397a125d2788b829fa62b88dbf7 |
| linux | linux | >= a6a52579e52b55448326db88bd9a5740e7c1a037 < bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 | bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 |
| linux | linux | >= a6a52579e52b55448326db88bd9a5740e7c1a037 < 6583edbf459de2e06b9759f264c0ae27e452b97a | 6583edbf459de2e06b9759f264c0ae27e452b97a |
| linux | linux | >= a6a52579e52b55448326db88bd9a5740e7c1a037 < 417ea9fe972d2654a268ad66e89c8fcae67017c3 | 417ea9fe972d2654a268ad66e89c8fcae67017c3 |
| linux | linux_kernel | >= 0 < 5.10.140-1 | 5.10.140-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 4.17 < 4.19.256 | 4.19.256 |
| linux | linux_kernel | >= 4.20 < 5.4.211 | 5.4.211 |
| linux | linux_kernel | >= 5.11 < 5.15.63 | 5.15.63 |
| linux | linux_kernel | >= 5.16 < 5.19.4 | 5.19.4 |
| linux | linux_kernel | >= 5.5 < 5.10.138 | 5.10.138 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2022-50074: In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix memleak in aa_simple_write_to_buffer() When copy_from_user failed, t
osv·2025-06-18·CVSS 5.5
CVE-2022-50074 [MEDIUM] CVE-2022-50074: In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix memleak in aa_simple_write_to_buffer() When copy_from_user failed, t
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.
GHSA
GHSA-q542-6qvr-358j: In the Linux kernel, the following vulnerability has been resolved:
apparmor: Fix memleak in aa_simple_write_to_buffer()
When copy_from_user failed,
ghsa_unreviewed·2025-06-18
CVE-2022-50074 [MEDIUM] CWE-401 GHSA-q542-6qvr-358j: In the Linux kernel, the following vulnerability has been resolved:
apparmor: Fix memleak in aa_simple_write_to_buffer()
When copy_from_user failed,
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.
Red Hat
kernel: apparmor: Fix memleak in aa_simple_write_to_buffer()
vendor_redhat·2025-06-18·CVSS 5.5
CVE-2022-50074 [MEDIUM] kernel: apparmor: Fix memleak in aa_simple_write_to_buffer()
kernel: apparmor: Fix memleak in aa_simple_write_to_buffer()
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.
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Linux 8) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 8) - Not affected
Package: kernel (
Debian
CVE-2022-50074: linux - In the Linux kernel, the following vulnerability has been resolved: apparmor: F...
vendor_debian·2022·CVSS 5.5
CVE-2022-50074 [MEDIUM] CVE-2022-50074: linux - In the Linux kernel, the following vulnerability has been resolved: apparmor: F...
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.
Scope: local
bookworm: resolved (fixed in 6.0.2-1)
bullseye: resolved (fixed in 5.10.140-1)
forky: resolved (fixed in 6.0.2-1)
sid: resolved (fixed in 6.0.2-1)
trixie: resolved (fixed in 6.0.2-1)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97ahttps://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7
2025-06-18
Published