CVE-2022-2503 Linux Kernel LoadPin bypass via dm-verity table reload

Medium 6.9 Published Updated

Root users can bypass LoadPin security restrictions via dm-verity table reloads to load unverified kernel modules, enabling arbitrary code execution.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-2503?

CVE-2022-2503 is a medium-severity vulnerability in Linux kernel, published on 12 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Dm-verity is used for extending root-of-trust to root filesystems. LoadPin builds on this property to restrict module/firmware loads to just the trusted root filesystem. Device-mapper table reloads currently allow users with root privileges to switch out the target with an equivalent dm-linear target and bypass verification till reboot. This allows root to bypass LoadPin and can be used to load untrusted and unverified kernel modules and firmware, which implies arbitrary kernel execution and persistence for peripherals that do not verify firmware updates. We recommend upgrading past commit 4caae58406f8ceb741603eee460d79bacca9b1b5

Weakness: CWE-287, CWE-302

Which versions are affected by CVE-2022-2503?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-2503?

Apply the vendor's patch.

Is CVE-2022-2503 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-2503 exists.

All Linux kernel vulnerabilities

Sources

Also known as AZL-10559, DEBIAN-CVE-2022-2503, GHSA-6vq3-w69p-w63m, GHSA-j7xr-c5x7-xr2p, UBUNTU-CVE-2022-2503.

Is CVE-2022-2503 in your software?

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

Check your SBOMs for free