CVE-2025-21848 nfp: bpf: Add check for nfp_app_ctrl_msg_alloc()

Medium 5.5 Published Updated

A missing check for memory allocation failure in the Linux kernel NFP BPF driver can lead to a null pointer dereference and system crash.

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-2025-21848?

CVE-2025-21848 is a medium-severity vulnerability in Linux kernel, published on 12 Mar 2025. 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: bpf: Add check for nfp_app_ctrl_msg_alloc()

Add check for the return value of nfp_app_ctrl_msg_alloc() in nfp_bpf_cmsg_alloc() to prevent null pointer dereference.

Weakness: CWE-476

Which versions are affected by CVE-2025-21848?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-21848?

Apply the vendor's patch.

Is CVE-2025-21848 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-58494, AZL-58590, BELL-CVE-2025-21848, DEBIAN-CVE-2025-21848, GHSA-3ffg-fcmm-x4pp, ROOT-OS-UBUNTU-2404-CVE-2025-21848 and 1 more.

Is CVE-2025-21848 in your software?

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

Check your SBOMs for free