# CVE-2022-48857: NFC: port100: fix use-after-free in port100\_send\_complete

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-07-16T12:25:22.464Z
- **Modified:** 2026-06-17T05:16:23.763Z

## Who should check

- Anyone running Linux \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 205c4ec78e71cbf561794e6043da80e7bae6790f; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 32e866ae5a7af590597ef4bcff8451bf96d5f980; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< b1db33d4e54bc35d8db96ce143ea0ef92e23d58e; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< cd2a5c0da0d1ddf11d1f84e9c9b1949f50f6e161; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 2b1c85f56512d49e43bc53741fce2f508cd90029; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 0e721b8f2ee5e11376dd55363f9ccb539d754b8a; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 7194737e1be8fdc89d2a9382bd2f371f7ee2eda8; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< f80cfe2f26581f188429c12bd937eb905ad3ac7b
- Anyone running Linux 3.13

## Description

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

NFC: port100: fix use-after-free in port100\_send\_complete

Syzbot reported UAF in port100\_send\_complete(). The root case is in
missing usb\_kill\_urb() calls on error handling path of -\>probe function.

port100\_send\_complete() accesses devm allocated memory which will be
freed on probe failure. We should kill this urbs before returning an
error from probe function to prevent reported use-after-free

Fail log:

BUG: KASAN: use-after-free in port100\_send\_complete+0x16e/0x1a0 drivers/nfc/port100.c:935
Read of size 1 at addr ffff88801bb59540 by task ksoftirqd/2/26
...
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
 print\_address\_description.constprop.0.cold+0x8d/0x303 mm/kasan/report.c:255
 \_\_kasan\_report mm/kasan/report.c:442 \[inline\]
 kasan\_report.cold+0x83/0xdf mm/kasan/report.c:459
 port100\_send\_complete+0x16e/0x1a0 drivers/nfc/port100.c:935
 \_\_usb\_hcd\_giveback\_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1670

...

Allocated by task 1255:
 kasan\_save\_stack+0x1e/0x40 mm/kasan/common.c:38
 kasan\_set\_track mm/kasan/common.c:45 \[inline\]
 set\_alloc\_info mm/kasan/common.c:436 \[inline\]
 \_\_\_\_kasan\_kmalloc mm/kasan/common.c:515 \[inline\]
 \_\_\_\_kasan\_kmalloc mm/kasan/common.c:474 \[inline\]
 \_\_kasan\_kmalloc+0xa6/0xd0 mm/kasan/common.c:524
 alloc\_dr drivers/base/devres.c:116 \[inline\]
 devm\_kmalloc+0x96/0x1d0 drivers/base/devres.c:823
 devm\_kzalloc include/linux/device.h:209 \[inline\]
 port100\_probe+0x8a/0x1320 drivers/nfc/port100.c:1502

Freed by task 1255:
 kasan\_save\_stack+0x1e/0x40 mm/kasan/common.c:38
 kasan\_set\_track+0x21/0x30 mm/kasan/common.c:45
 kasan\_set\_free\_info+0x20/0x30 mm/kasan/generic.c:370
 \_\_\_\_kasan\_slab\_free mm/kasan/common.c:366 \[inline\]
 \_\_\_\_kasan\_slab\_free+0xff/0x140 mm/kasan/common.c:328
 kasan\_slab\_free include/linux/kasan.h:236 \[inline\]
 \_\_cache\_free mm/slab.c:3437 \[inline\]
 kfree+0xf8/0x2b0 mm/slab.c:3794
 release\_nodes+0x112/0x1a0 drivers/base/devres.c:501
 devres\_release\_all+0x114/0x190 drivers/base/devres.c:530
 really\_probe+0x626/0xcc0 drivers/base/dd.c:670

## Affected and fixed versions

- Linux: \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 205c4ec78e71cbf561794e6043da80e7bae6790f; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 32e866ae5a7af590597ef4bcff8451bf96d5f980; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< b1db33d4e54bc35d8db96ce143ea0ef92e23d58e; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< cd2a5c0da0d1ddf11d1f84e9c9b1949f50f6e161; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 2b1c85f56512d49e43bc53741fce2f508cd90029; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 0e721b8f2ee5e11376dd55363f9ccb539d754b8a; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 7194737e1be8fdc89d2a9382bd2f371f7ee2eda8; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< f80cfe2f26581f188429c12bd937eb905ad3ac7b (cvelist)
- Linux: 3.13 (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-48857. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48857.md
Affected: Linux >= 0347a6ab300a1532c298823408d6e51ccf4e4f45, < 205c4ec78e71cbf561794e6043da80e7bae6790f; >= 0347a6ab300a1532c298823408d6e51ccf4e4f45, < 32e866ae5a7af590597ef4bcff8451bf96d5f980; >= 0347a6ab300a1532c298823408d6e51ccf4e4f45, < b1db33d4e54bc35d8db96ce143ea0ef92e23d58e; >= 0347a6ab300a1532c298823…
Fixed in: Linux 205c4ec78e71cbf561794e6043da80e7bae6790f, Linux 32e866ae5a7af590597ef4bcff8451bf96d5f980, Linux 2b1c85f56512d49e43bc53741fce2f508cd90029, Linux 0e721b8f2ee5e11376dd55363f9ccb539d754b8a, Linux 7194737e1be8fdc89d2a9382bd2f371f7ee2eda8

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-48857 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 205c4ec78e71cbf561794e6043da80e7bae6790f; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 32e866ae5a7af590597ef4bcff8451bf96d5f980; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< b1db33d4e54bc35d8db96ce143ea0ef92e23d58e; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< cd2a5c0da0d1ddf11d1f84e9c9b1949f50f6e161; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 2b1c85f56512d49e43bc53741fce2f508cd90029; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 0e721b8f2ee5e11376dd55363f9ccb539d754b8a; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< 7194737e1be8fdc89d2a9382bd2f371f7ee2eda8; \>= 0347a6ab300a1532c298823408d6e51ccf4e4f45, \< f80cfe2f26581f188429c12bd937eb905ad3ac7b; Linux 3.13.

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

Yes. Fixed in Linux 205c4ec78e71cbf561794e6043da80e7bae6790f, Linux 32e866ae5a7af590597ef4bcff8451bf96d5f980, Linux 2b1c85f56512d49e43bc53741fce2f508cd90029, Linux 0e721b8f2ee5e11376dd55363f9ccb539d754b8a, Linux 7194737e1be8fdc89d2a9382bd2f371f7ee2eda8. No fix listed yet: follow the vendor advisory.

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

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

- patch: <https://git.kernel.org/stable/c/205c4ec78e71cbf561794e6043da80e7bae6790f>
- patch: <https://git.kernel.org/stable/c/32e866ae5a7af590597ef4bcff8451bf96d5f980>
- patch: <https://git.kernel.org/stable/c/b1db33d4e54bc35d8db96ce143ea0ef92e23d58e>
- patch: <https://git.kernel.org/stable/c/cd2a5c0da0d1ddf11d1f84e9c9b1949f50f6e161>
- patch: <https://git.kernel.org/stable/c/2b1c85f56512d49e43bc53741fce2f508cd90029>
- patch: <https://git.kernel.org/stable/c/0e721b8f2ee5e11376dd55363f9ccb539d754b8a>
- patch: <https://git.kernel.org/stable/c/7194737e1be8fdc89d2a9382bd2f371f7ee2eda8>
- patch: <https://git.kernel.org/stable/c/f80cfe2f26581f188429c12bd937eb905ad3ac7b>

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

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