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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-03-12T09:42:04.263Z
- Modified: 2026-10-15T01:04:45.393Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ff3d43f7568c82b335d7df2d40a31447c3fce10c before d64c6ca420019712e194fe095b55f87363e22a9a; from ff3d43f7568c82b335d7df2d40a31447c3fce10c before e976ea6c5e1b005c64467cbf94a8577aae9c7d81; from ff3d43f7568c82b335d7df2d40a31447c3fce10c before 924b239f9704566e0d86abd894d2d64bd73c11eb; from ff3d43f7568c82b335d7df2d40a31447c3fce10c before 1358d8e07afdf21d49ca6f00c56048442977e00a; from ff3d43f7568c82b335d7df2d40a31447c3fce10c before 29ccb1e4040da6ff02b7e64efaa2f8e6bf06020d; from ff3d43f7568c82b335d7df2d40a31447c3fce10c before 897c32cd763fd11d0b6ed024c52f44d2475bb820; from ff3d43f7568c82b335d7df2d40a31447c3fce10c before bd97f60750bb581f07051f98e31dfda59d3a783b; from ff3d43f7568c82b335d7df2d40a31447c3fce10c before 878e7b11736e062514e58f3b445ff343e6705537; 4.16 (not affected: before 4.16; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.130 up to 6.1.*; from 6.6.80 up to 6.6.*; from 6.12.17 up to 6.12.*; from 6.13.5 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.16 before 6.1.130; from 6.2 before 6.6.80; from 6.7 before 6.12.17; from 6.13 before 6.13.5; 6.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d64c6ca420019712e194fe095b55f87363e22a9a> (patch)
- <https://git.kernel.org/stable/c/e976ea6c5e1b005c64467cbf94a8577aae9c7d81> (patch)
- <https://git.kernel.org/stable/c/924b239f9704566e0d86abd894d2d64bd73c11eb> (patch)
- <https://git.kernel.org/stable/c/1358d8e07afdf21d49ca6f00c56048442977e00a> (patch)
- <https://git.kernel.org/stable/c/29ccb1e4040da6ff02b7e64efaa2f8e6bf06020d> (patch)
- <https://git.kernel.org/stable/c/897c32cd763fd11d0b6ed024c52f44d2475bb820> (patch)
- <https://git.kernel.org/stable/c/bd97f60750bb581f07051f98e31dfda59d3a783b> (patch)
- <https://git.kernel.org/stable/c/878e7b11736e062514e58f3b445ff343e6705537> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Sources

- CVE List: [CVE-2025-21848](https://www.cve.org/CVERecord?id=CVE-2025-21848), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-21848](https://nvd.nist.gov/vuln/detail/CVE-2025-21848), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21848 · Whole record: https://cve.day/CVE-2025-21848.json · Rebuilt by cve.day 2026-11-25T22:58:55.198Z
