CVE-2026-47331 Use-after-free in Ubuntu Linux AppArmor notification handling

High 7.8 Published Updated

An unprivileged local user can trigger a race condition in AppArmor notification handling, leading to a use-after-free and potential arbitrary code execution.

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-2026-47331?

CVE-2026-47331 is a high-severity use after free vulnerability in Canonical Ubuntu Linux, published on 28 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Ubuntu Linux 6.8 contains AppArmor SAUCE patches which fail to acquire a lock when modifying a linked list. An unprivileged local user could trigger the race condition that can lead to a use-after-free (UAF) and, theoretically, arbitrary code execution.

Weakness: CWE-416

Which versions are affected by CVE-2026-47331?

It affects 1 product.

Products include Canonical Ubuntu Linux.

How do I fix CVE-2026-47331?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-47331 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-2qg4-q443-hfg6, UBUNTU-CVE-2026-47331.

Is CVE-2026-47331 in your software?

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

Check your SBOMs for free