CVE-2021-47453 ice: Avoid crash from unnecessary IDA free

Medium 5.5 Published Updated

A null pointer dereference in the Intel ice driver can cause a kernel crash when unloading the driver on systems without RDMA support.

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-2021-47453?

CVE-2021-47453 is a medium-severity vulnerability in Linux kernel, published on 22 May 2024. 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:

ice: Avoid crash from unnecessary IDA free

In the remove path, there is an attempt to free the aux_idx IDA whether it was allocated or not. This can potentially cause a crash when unloading the driver on systems that do not initialize support for RDMA. But, this free cannot be gated by the status bit for RDMA, since it is allocated if the driver detects support for RDMA at probe time, but the driver can enter into a state where RDMA is not supported after the IDA has been allocated at probe time and this would lead to a memory leak.

Initialize aux_idx to an invalid value and check for a valid value when unloading to determine if an IDA free is necessary.

Weakness: CWE-401

Which versions are affected by CVE-2021-47453?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47453?

Apply the vendor's patch.

Is CVE-2021-47453 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47453, GHSA-hpj2-q4fg-98gf, UBUNTU-CVE-2021-47453.

Is CVE-2021-47453 in your software?

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

Check your SBOMs for free