# CVE-2025-40043: net: nfc: nci: Add parameter validation for packet data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.46% (percentile 32, 2026-11-26)
- **Published:** 2025-10-28T11:48:22.230Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 8fcc7315a10a84264e55bb65ede10f0af20a983f; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< bfdda0123dde406dbff62e7e9136037e97998a15; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 0ba68bea1e356f466ad29449938bea12f5f3711f; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 74837bca0748763a77f77db47a0bdbe63b347628; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< c395d1e548cc68e84584ffa2e3ca9796a78bf7b9; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 9c328f54741bd5465ca1dc717c84c04242fac2e1
- Anyone running Linux 3.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: nfc: nci: Add parameter validation for packet data

Syzbot reported an uninitialized value bug in nci\_init\_req, which was
introduced by commit 5aca7966d2a7 ("Merge tag
'perf-tools-fixes-for-v6.17-2025-09-16' of
git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools").

This bug arises due to very limited and poor input validation
that was done at nic\_valid\_size(). This validation only
validates the skb-\>len (directly reflects size provided at the
userspace interface) with the length provided in the buffer
itself (interpreted as NCI\_HEADER). This leads to the processing
of memory content at the address assuming the correct layout
per what opcode requires there. This leads to the accesses to
buffer of \`skb\_buff-\>data\` which is not assigned anything yet.

Following the same silent drop of packets of invalid sizes at
\`nic\_valid\_size()\`, add validation of the data in the respective
handlers and return error values in case of failure. Release
the skb if error values are returned from handlers in
\`nci\_nft\_packet\` and effectively do a silent drop

Possible TODO: because we silently drop the packets, the
call to \`nci\_request\` will be waiting for completion of request
and will face timeouts. These timeouts can get excessively logged
in the dmesg. A proper handling of them may require to export
\`nci\_request\_cancel\` (or propagate error handling from the
nft packets handlers).

## Affected and fixed versions

- Linux: \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 8fcc7315a10a84264e55bb65ede10f0af20a983f; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< bfdda0123dde406dbff62e7e9136037e97998a15; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 0ba68bea1e356f466ad29449938bea12f5f3711f; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 74837bca0748763a77f77db47a0bdbe63b347628; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< c395d1e548cc68e84584ffa2e3ca9796a78bf7b9; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 9c328f54741bd5465ca1dc717c84c04242fac2e1 (cvelist)
- Linux: 3.2 (cvelist)

## Mitigation

- Upgrade Linux to 9c328f54741bd5465ca1dc717c84c04242fac2e1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40043. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40043.md
Affected: Linux >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < 8fcc7315a10a84264e55bb65ede10f0af20a983f; >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < bfdda0123dde406dbff62e7e9136037e97998a15; >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < 0ba68bea1e356f466ad29449938bea12f5f3711f; >= 6a2968aaf50c7a22fced77a…
Fixed in: Linux 8fcc7315a10a84264e55bb65ede10f0af20a983f, Linux 0ba68bea1e356f466ad29449938bea12f5f3711f, Linux 74837bca0748763a77f77db47a0bdbe63b347628, Linux 9c328f54741bd5465ca1dc717c84c04242fac2e1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40043 being exploited?

There is no confirmed exploitation: CVE-2025-40043 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40043?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40043?

Linux \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 8fcc7315a10a84264e55bb65ede10f0af20a983f; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< bfdda0123dde406dbff62e7e9136037e97998a15; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 0ba68bea1e356f466ad29449938bea12f5f3711f; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 74837bca0748763a77f77db47a0bdbe63b347628; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< c395d1e548cc68e84584ffa2e3ca9796a78bf7b9; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 9c328f54741bd5465ca1dc717c84c04242fac2e1; Linux 3.2.

### Is there a fix for CVE-2025-40043?

Yes. Fixed in Linux 8fcc7315a10a84264e55bb65ede10f0af20a983f, Linux 0ba68bea1e356f466ad29449938bea12f5f3711f, Linux 74837bca0748763a77f77db47a0bdbe63b347628, Linux 9c328f54741bd5465ca1dc717c84c04242fac2e1. Upgrade Linux to 9c328f54741bd5465ca1dc717c84c04242fac2e1 or later.

### How do I check if I'm affected by CVE-2025-40043?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8fcc7315a10a84264e55bb65ede10f0af20a983f>
- other: <https://git.kernel.org/stable/c/bfdda0123dde406dbff62e7e9136037e97998a15>
- other: <https://git.kernel.org/stable/c/0ba68bea1e356f466ad29449938bea12f5f3711f>
- other: <https://git.kernel.org/stable/c/74837bca0748763a77f77db47a0bdbe63b347628>
- other: <https://git.kernel.org/stable/c/c395d1e548cc68e84584ffa2e3ca9796a78bf7b9>
- other: <https://git.kernel.org/stable/c/9c328f54741bd5465ca1dc717c84c04242fac2e1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40043>

HTML: <https://flawdb.com/CVE-2025-40043> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40043>
