CVE-2022-4696 Use after free in Linux Kernel

High 7.8 Published Updated

A use-after-free in the Linux kernel io_uring splice operation allows attackers to execute arbitrary code or escalate privileges.

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-4696?

CVE-2022-4696 is a high-severity use after free vulnerability in Linux kernel, published on 11 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

There exists a use-after-free vulnerability in the Linux kernel through io_uring and the IORING_OP_SPLICE operation. If IORING_OP_SPLICE is missing the IO_WQ_WORK_FILES flag, which signals that the operation won't use current->nsproxy, so its reference counter is not increased. This assumption is not always true as calling io_splice on specific files will call the get_uts function which will use current->nsproxy leading to invalidly decreasing its reference counter later causing the use-after-free vulnerability. We recommend upgrading to version 5.10.160 or above

Weakness: CWE-416, CWE-763

Which versions are affected by CVE-2022-4696?

It affects 6 products.

Products include Linux kernel, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware.

How do I fix CVE-2022-4696?

Upgrade to a fixed version.

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-2022-4696 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as A-264692298, ASB-A-264692298, DEBIAN-CVE-2022-4696, GHSA-8vjx-3vgx-66mx, UBUNTU-CVE-2022-4696.

Is CVE-2022-4696 in your software?

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

Check your SBOMs for free