CVE-2022-50074

Source
https://cve.org/CVERecord?id=CVE-2022-50074
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50074.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50074
Downstream
Related
Published
2025-06-18T11:02:18.140Z
Modified
2026-05-28T03:55:32.715502067Z
Summary
apparmor: Fix memleak in aa_simple_write_to_buffer()
Details

In the Linux kernel, the following vulnerability has been resolved:

apparmor: Fix memleak in aasimplewritetobuffer()

When copyfromuser 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 aaputloaddata(data) to fix this issue.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50074.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a6a52579e52b55448326db88bd9a5740e7c1a037
Fixed
6500eb3a48ac221051b1791818a1ac74744ef617
Fixed
7db182a2ebeefded86fea542fcc5d6a68bb77f58
Fixed
8aab4295582eb397a125d2788b829fa62b88dbf7
Fixed
bf7ebebce2c25071c719fd8a2f1307e0c243c2d7
Fixed
6583edbf459de2e06b9759f264c0ae27e452b97a
Fixed
417ea9fe972d2654a268ad66e89c8fcae67017c3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50074.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.17.0
Fixed
4.19.256
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.211
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.138
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.63
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50074.json"