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, 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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

17 Nov 2025, 19:31

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3 - () https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3 - Patch
References () https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617 - () https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617 - Patch
References () https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a - () https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a - Patch
References () https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58 - () https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58 - Patch
References () https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7 - () https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7 - Patch
References () https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 - () https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 - Patch
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: apparmor: Se corrige la fuga de memoria en aa_simple_write_to_buffer(). Cuando copy_from_user falla, kvfree libera la memoria. Sin embargo, la estructura de administración y el blob de datos se asignan de forma independiente, por lo que solo kvfree(data) causa un problema de fuga de memoria. Utilice aa_put_loaddata(data) para solucionar este problema.
First Time Linux
Linux linux Kernel
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
CWE CWE-401
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

18 Jun 2025, 11:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-06-18 11:15

Updated : 2025-11-17 19:31


NVD link : CVE-2022-50074

Mitre link : CVE-2022-50074

CVE.ORG link : CVE-2022-50074


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-401

Missing Release of Memory after Effective Lifetime