# CVE-2022-50754: apparmor: fix a memleak in multi_transaction_new()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-02)
- Published: 2025-12-24T13:05:48.245Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

## Description

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

apparmor: fix a memleak in multi_transaction_new()

In multi_transaction_new(), the variable t is not freed or passed out
on the failure of copy_from_user(t->data, buf, size), which could lead
to a memleak.

Fix this bug by adding a put_multi_transaction(t) in the error path.

(As written by CVE List.)

## Affected

- Linux Linux: from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before 11d5fe7da67c3334cefc981297fd5defb78df15c; from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before 95e6adc6a7a4761ddf69ad713e55a06a3206309d; from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before eb0f78e28cbc8f97439c0a4c80ee5160c1df5ce6; from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before 935d86b29093e75b6c547d90b3979c2c2d23f1c4; from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before 775a37ffa9f4681c4ad84c8634a7eec8af7098d4; from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before 88989932c2269ea66074f52a6213598838f8b9e7; from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before 3d27a436e294ac5d7a51bd5348ca63a42a468b35; from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5 before c73275cf6834787ca090317f1d20dbfa3b7f05aa; 4.13 (not affected: before 4.13; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/11d5fe7da67c3334cefc981297fd5defb78df15c>
- <https://git.kernel.org/stable/c/95e6adc6a7a4761ddf69ad713e55a06a3206309d>
- <https://git.kernel.org/stable/c/eb0f78e28cbc8f97439c0a4c80ee5160c1df5ce6>
- <https://git.kernel.org/stable/c/935d86b29093e75b6c547d90b3979c2c2d23f1c4>
- <https://git.kernel.org/stable/c/775a37ffa9f4681c4ad84c8634a7eec8af7098d4>
- <https://git.kernel.org/stable/c/88989932c2269ea66074f52a6213598838f8b9e7>
- <https://git.kernel.org/stable/c/3d27a436e294ac5d7a51bd5348ca63a42a468b35>
- <https://git.kernel.org/stable/c/c73275cf6834787ca090317f1d20dbfa3b7f05aa>

## Sources

- CVE List: [CVE-2022-50754](https://www.cve.org/CVERecord?id=CVE-2022-50754), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50754](https://nvd.nist.gov/vuln/detail/CVE-2022-50754), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-50754 · Whole record: https://cve.day/CVE-2022-50754.json · Rebuilt by cve.day 2026-11-25T22:58:21.348Z
