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

Not scored Published Updated

A memory leak in the Linux kernel AppArmor module allows local attackers to cause a denial of service by exhausting system memory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-50754?

CVE-2022-50754 is a memory corruption vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-50754?

How do I fix CVE-2022-50754?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-50754 being exploited?

There is no known exploitation of CVE-2022-50754 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-50754, GHSA-fx2h-pcqr-7fq9, UBUNTU-CVE-2022-50754.

Is CVE-2022-50754 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free