---
id: CVE-2025-21735
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  NFC: nci: Add bounds checking in nci_hci_create_pipe()

  The "pipe" variable is a u8 which comes from the network
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  NFC: nci: Add bounds checking in nci_hci_create_pipe()

  The "pipe" variable is a u8 which comes from the network.  If it's more
  than 127, then it results in memory corr…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-787
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.4, < 6.1.129'
  - 'linux_kernel >= 6.2, < 6.6.78'
  - 'linux_kernel >= 6.7, < 6.12.14'
  - 'linux_kernel >= 6.13, < 6.13.3'
patched:
  - linux_kernel 6.13.3
published: '2025-02-27'
updated: '2026-07-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21735'
references:
  - url: 'https://git.kernel.org/stable/c/10b3f947b609713e04022101f492d288a014ddfa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/110b43ef05342d5a11284cc8b21582b698b4ef1c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/172cdfc3a5ea20289c58fb73dadc6fd4a8784a4e'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2ae4bade5a64d126bd18eb66bd419005c5550218'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/59c7ed20217c0939862fbf8145bc49d5b3a13f4f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/674e17c5933779a8bf5c15d596fdfcb5ccdebbc2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/bd249109d266f1d52548c46634a15b71656e0d44'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d5a461c315e5ff92657f84d8ba50caa5abf5c22a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-21735.json
  - url: 'https://access.redhat.com/security/cve/CVE-2025-21735'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2348540'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-21735'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21735'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2025022658-CVE-2025-21735-259b@gregkh/T
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.0038
epssPercentile: 0.31949
ingestedAt: '2026-07-30T06:53:09.569Z'
scores:
  nvd: 8.8
  vendor: 7.8
---

## Overview

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

NFC: nci: Add bounds checking in nci_hci_create_pipe()

The "pipe" variable is a u8 which comes from the network.  If it's more
than 127, then it results in memory corruption in the caller,
nci_hci_connect_gate().

## Affected

- `linux_kernel >= 4.4, < 6.1.129`
- `linux_kernel >= 6.2, < 6.6.78`
- `linux_kernel >= 6.7, < 6.12.14`
- `linux_kernel >= 6.13, < 6.13.3`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.13.3`

## Vendor advisories

- **Red Hat VEX** · Important · updated 2026-09-13 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-21735.json)
