CVE-2024-27046 nfp: flower: handle acti_netdevs allocation failure

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel NFP driver can cause a denial of service when memory allocation fails.

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-2024-27046?

CVE-2024-27046 is a medium-severity vulnerability in Linux kernel, published on 1 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:

nfp: flower: handle acti_netdevs allocation failure

The kmalloc_array() in nfp_fl_lag_do_work() will return null, if the physical memory has run out. As a result, if we dereference the acti_netdevs, the null pointer dereference bugs will happen.

This patch adds a check to judge whether allocation failure occurs. If it happens, the delayed work will be rescheduled and try again.

Weakness: CWE-476

Which versions are affected by CVE-2024-27046?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-27046?

Apply the vendor's patch.

Is CVE-2024-27046 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-27046, DEBIAN-CVE-2024-27046, GHSA-2q2v-7x59-8w6v, UBUNTU-CVE-2024-27046.

Is CVE-2024-27046 in your software?

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

Check your SBOMs for free