# CVE-2022-50854: nfc: virtual\_ncidev: Fix memory leak in virtual\_nci\_send()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:15:29.792Z
- **Modified:** 2026-06-17T05:24:18.110Z

## Who should check

- Anyone running Linux \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< 88e879c9f59511174ef0ab1a3c9c83e2dbf8a213; \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< 2c46a9a5f0b1c7341aa67667801079f3ff571678; \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< e840d8f4a1b323973052a1af5ad4edafcde8ae3d
- Anyone running Linux 5.12

## Description

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

nfc: virtual\_ncidev: Fix memory leak in virtual\_nci\_send()

skb should be free in virtual\_nci\_send(), otherwise kmemleak will report
memleak.

Steps for reproduction (simulated in qemu):
	cd tools/testing/selftests/nci
	make
	./nci\_dev

BUG: memory leak
unreferenced object 0xffff888107588000 (size 208):
  comm "nci\_dev", pid 206, jiffies 4294945376 (age 368.248s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<000000008d94c8fd\>\] \_\_alloc\_skb+0x1da/0x290
    \[\<00000000278bc7f8\>\] nci\_send\_cmd+0xa3/0x350
    \[\<0000000081256a22\>\] nci\_reset\_req+0x6b/0xa0
    \[\<000000009e721112\>\] \_\_nci\_request+0x90/0x250
    \[\<000000005d556e59\>\] nci\_dev\_up+0x217/0x5b0
    \[\<00000000e618ce62\>\] nfc\_dev\_up+0x114/0x220
    \[\<00000000981e226b\>\] nfc\_genl\_dev\_up+0x94/0xe0
    \[\<000000009bb03517\>\] genl\_family\_rcv\_msg\_doit.isra.14+0x228/0x2d0
    \[\<00000000b7f8c101\>\] genl\_rcv\_msg+0x35c/0x640
    \[\<00000000c94075ff\>\] netlink\_rcv\_skb+0x11e/0x350
    \[\<00000000440cfb1e\>\] genl\_rcv+0x24/0x40
    \[\<0000000062593b40\>\] netlink\_unicast+0x43f/0x640
    \[\<000000001d0b13cc\>\] netlink\_sendmsg+0x73a/0xbf0
    \[\<000000003272487f\>\] \_\_sys\_sendto+0x324/0x370
    \[\<00000000ef9f1747\>\] \_\_x64\_sys\_sendto+0xdd/0x1b0
    \[\<000000001e437841\>\] do\_syscall\_64+0x3f/0x90

## Affected and fixed versions

- Linux: \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< 88e879c9f59511174ef0ab1a3c9c83e2dbf8a213; \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< 2c46a9a5f0b1c7341aa67667801079f3ff571678; \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< e840d8f4a1b323973052a1af5ad4edafcde8ae3d (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50854.md
Affected: Linux >= e624e6c3e777fb3dfed036b9da4d433aee3608a5, < 88e879c9f59511174ef0ab1a3c9c83e2dbf8a213; >= e624e6c3e777fb3dfed036b9da4d433aee3608a5, < 2c46a9a5f0b1c7341aa67667801079f3ff571678; >= e624e6c3e777fb3dfed036b9da4d433aee3608a5, < e840d8f4a1b323973052a1af5ad4edafcde8ae3d; Linux 5.12
Fixed in: Linux 88e879c9f59511174ef0ab1a3c9c83e2dbf8a213, Linux 2c46a9a5f0b1c7341aa67667801079f3ff571678

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-2022-50854 being exploited?

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

### How serious is CVE-2022-50854?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50854?

Linux \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< 88e879c9f59511174ef0ab1a3c9c83e2dbf8a213; \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< 2c46a9a5f0b1c7341aa67667801079f3ff571678; \>= e624e6c3e777fb3dfed036b9da4d433aee3608a5, \< e840d8f4a1b323973052a1af5ad4edafcde8ae3d; Linux 5.12.

### Is there a fix for CVE-2022-50854?

Yes. Fixed in Linux 88e879c9f59511174ef0ab1a3c9c83e2dbf8a213, Linux 2c46a9a5f0b1c7341aa67667801079f3ff571678. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50854?

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/88e879c9f59511174ef0ab1a3c9c83e2dbf8a213>
- other: <https://git.kernel.org/stable/c/2c46a9a5f0b1c7341aa67667801079f3ff571678>
- other: <https://git.kernel.org/stable/c/e840d8f4a1b323973052a1af5ad4edafcde8ae3d>

## 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-2022-50854>

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