# CVE-2022-49505: NFC: NULL out the dev-\>rfkill to prevent UAF

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T02:13:37.496Z
- **Modified:** 2026-08-05T08:55:23.598Z

## Who should check

- Anyone running Linux \>= ff169909eac9e00bf1aa0af739ba6ddfb1b1d135, \< a8e03bcad52dc9afabf650fdbad84f739cec9efa; \>= 47244ac0b65bd74cc70007d8e1bac68bd2baad19, \< f81270125b50532624400063281e6611ecd61ddf; \>= c45cea83e13699bdfd47842e04d09dd43af4c371, \< 6abfaca8711803d0d7cc8c0fac1070a88509d463; \>= 307d2e6cebfca9d92f86c8e2c8e3dd4a8be46ba6, \< fbf9c4c714d3cdeb98b6a18e4d057f931cad1d81; \>= 73a0d12114b4bc1a9def79a623264754b9df698e, \< 2a1b5110c95e4d49c8c3906270dfcde680a5a7be; \>= 8a9c61c3ef187d8891225f9b932390670a43a0d3, \< 1632be63862f183cd5cf1cc094e698e6ec005dfd; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 4a68938f43b7c2663e4c90bb9bbe29ac8b9a42a0; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 4f5d71930f41be78557f9714393179025baacd65; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 1b0e81416a24d6e9b8c2341e22e8bf48f8b8bfc9; 5ef16d2d172ee56714cff37cd005b98aba08ef5a; …
- Anyone running Linux 5.16

## Description

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

NFC: NULL out the dev-\>rfkill to prevent UAF

Commit 3e3b5dfcd16a ("NFC: reorder the logic in nfc\_{un,}register\_device")
assumes the device\_is\_registered() in function nfc\_dev\_up() will help
to check when the rfkill is unregistered. However, this check only
take effect when device\_del(&dev-\>dev) is done in nfc\_unregister\_device().
Hence, the rfkill object is still possible be dereferenced.

The crash trace in latest kernel (5.18-rc2):

\[   68.760105\] ==================================================================
\[   68.760330\] BUG: KASAN: use-after-free in \_\_lock\_acquire+0x3ec1/0x6750
\[   68.760756\] Read of size 8 at addr ffff888009c93018 by task fuzz/313
\[   68.760756\]
\[   68.760756\] CPU: 0 PID: 313 Comm: fuzz Not tainted 5.18.0-rc2 \#4
\[   68.760756\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
\[   68.760756\] Call Trace:
\[   68.760756\]  \<TASK\>
\[   68.760756\]  dump\_stack\_lvl+0x57/0x7d
\[   68.760756\]  print\_report.cold+0x5e/0x5db
\[   68.760756\]  ? \_\_lock\_acquire+0x3ec1/0x6750
\[   68.760756\]  kasan\_report+0xbe/0x1c0
\[   68.760756\]  ? \_\_lock\_acquire+0x3ec1/0x6750
\[   68.760756\]  \_\_lock\_acquire+0x3ec1/0x6750
\[   68.760756\]  ? lockdep\_hardirqs\_on\_prepare+0x410/0x410
\[   68.760756\]  ? register\_lock\_class+0x18d0/0x18d0
\[   68.760756\]  lock\_acquire+0x1ac/0x4f0
\[   68.760756\]  ? rfkill\_blocked+0xe/0x60
\[   68.760756\]  ? lockdep\_hardirqs\_on\_prepare+0x410/0x410
\[   68.760756\]  ? mutex\_lock\_io\_nested+0x12c0/0x12c0
\[   68.760756\]  ? nla\_get\_range\_signed+0x540/0x540
\[   68.760756\]  ? \_raw\_spin\_lock\_irqsave+0x4e/0x50
\[   68.760756\]  \_raw\_spin\_lock\_irqsave+0x39/0x50
\[   68.760756\]  ? rfkill\_blocked+0xe/0x60
\[   68.760756\]  rfkill\_blocked+0xe/0x60
\[   68.760756\]  nfc\_dev\_up+0x84/0x260
\[   68.760756\]  nfc\_genl\_dev\_up+0x90/0xe0
\[   68.760756\]  genl\_family\_rcv\_msg\_doit+0x1f4/0x2f0
\[   68.760756\]  ? genl\_family\_rcv\_msg\_attrs\_parse.constprop.0+0x230/0x230
\[   68.760756\]  ? security\_capable+0x51/0x90
\[   68.760756\]  genl\_rcv\_msg+0x280/0x500
\[   68.760756\]  ? genl\_get\_cmd+0x3c0/0x3c0
\[   68.760756\]  ? lock\_acquire+0x1ac/0x4f0
\[   68.760756\]  ? nfc\_genl\_dev\_down+0xe0/0xe0
\[   68.760756\]  ? lockdep\_hardirqs\_on\_prepare+0x410/0x410
\[   68.760756\]  netlink\_rcv\_skb+0x11b/0x340
\[   68.760756\]  ? genl\_get\_cmd+0x3c0/0x3c0
\[   68.760756\]  ? netlink\_ack+0x9c0/0x9c0
\[   68.760756\]  ? netlink\_deliver\_tap+0x136/0xb00
\[   68.760756\]  genl\_rcv+0x1f/0x30
\[   68.760756\]  netlink\_unicast+0x430/0x710
\[   68.760756\]  ? memset+0x20/0x40
\[   68.760756\]  ? netlink\_attachskb+0x740/0x740
\[   68.760756\]  ? \_\_build\_skb\_around+0x1f4/0x2a0
\[   68.760756\]  netlink\_sendmsg+0x75d/0xc00
\[   68.760756\]  ? netlink\_unicast+0x710/0x710
\[   68.760756\]  ? netlink\_unicast+0x710/0x710
\[   68.760756\]  sock\_sendmsg+0xdf/0x110
\[   68.760756\]  \_\_sys\_sendto+0x19e/0x270
\[   68.760756\]  ? \_\_ia32\_sys\_getpeername+0xa0/0xa0
\[   68.760756\]  ? fd\_install+0x178/0x4c0
\[   68.760756\]  ? fd\_install+0x195/0x4c0
\[   68.760756\]  ? kernel\_fpu\_begin\_mask+0x1c0/0x1c0
\[   68.760756\]  \_\_x64\_sys\_sendto+0xd8/0x1b0
\[   68.760756\]  ? lockdep\_hardirqs\_on+0xbf/0x130
\[   68.760756\]  ? syscall\_enter\_from\_user\_mode+0x1d/0x50
\[   68.760756\]  do\_syscall\_64+0x3b/0x90
\[   68.760756\]  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
\[   68.760756\] RIP: 0033:0x7f67fb50e6b3
...
\[   68.760756\] RSP: 002b:00007f67fa91fe90 EFLAGS: 00000293 ORIG\_RAX: 000000000000002c
\[   68.760756\] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f67fb50e6b3
\[   68.760756\] RDX: 000000000000001c RSI: 0000559354603090 RDI: 0000000000000003
\[   68.760756\] RBP: 00007f67fa91ff00 R08: 00007f67fa91fedc R09: 000000000000000c
\[   68.760756\] R10: 0000000000000000 R11: 0000000000000293 R12: 00007ffe824d496e
\[   68.760756\] R13: 00007ffe824d496f R14: 00007f67fa120000 R15: 0000000000000003

\[   68.760756\]  \</TASK\>
\[   68.760756\]
\[   68.760756\] Allocated by task 279:
\[   68.760756\]  kasan\_save\_stack+0x1e/0x40
\[
---truncated---

## Affected and fixed versions

- Linux: \>= ff169909eac9e00bf1aa0af739ba6ddfb1b1d135, \< a8e03bcad52dc9afabf650fdbad84f739cec9efa; \>= 47244ac0b65bd74cc70007d8e1bac68bd2baad19, \< f81270125b50532624400063281e6611ecd61ddf; \>= c45cea83e13699bdfd47842e04d09dd43af4c371, \< 6abfaca8711803d0d7cc8c0fac1070a88509d463; \>= 307d2e6cebfca9d92f86c8e2c8e3dd4a8be46ba6, \< fbf9c4c714d3cdeb98b6a18e4d057f931cad1d81; \>= 73a0d12114b4bc1a9def79a623264754b9df698e, \< 2a1b5110c95e4d49c8c3906270dfcde680a5a7be; \>= 8a9c61c3ef187d8891225f9b932390670a43a0d3, \< 1632be63862f183cd5cf1cc094e698e6ec005dfd; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 4a68938f43b7c2663e4c90bb9bbe29ac8b9a42a0; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 4f5d71930f41be78557f9714393179025baacd65; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 1b0e81416a24d6e9b8c2341e22e8bf48f8b8bfc9; 5ef16d2d172ee56714cff37cd005b98aba08ef5a; … (cvelist)
- Linux: 5.16 (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-49505. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49505.md
Affected: Linux >= ff169909eac9e00bf1aa0af739ba6ddfb1b1d135, < a8e03bcad52dc9afabf650fdbad84f739cec9efa; >= 47244ac0b65bd74cc70007d8e1bac68bd2baad19, < f81270125b50532624400063281e6611ecd61ddf; >= c45cea83e13699bdfd47842e04d09dd43af4c371, < 6abfaca8711803d0d7cc8c0fac1070a88509d463; >= 307d2e6cebfca9d92f86c8e…
Fixed in: Linux 6abfaca8711803d0d7cc8c0fac1070a88509d463, Linux 2a1b5110c95e4d49c8c3906270dfcde680a5a7be, Linux 1632be63862f183cd5cf1cc094e698e6ec005dfd, Linux 4a68938f43b7c2663e4c90bb9bbe29ac8b9a42a0, Linux 4f5d71930f41be78557f9714393179025baacd65, Linux 1b0e81416a24d6e9b8c2341e22e8bf48f8b8bfc9

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

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

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

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

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

Linux \>= ff169909eac9e00bf1aa0af739ba6ddfb1b1d135, \< a8e03bcad52dc9afabf650fdbad84f739cec9efa; \>= 47244ac0b65bd74cc70007d8e1bac68bd2baad19, \< f81270125b50532624400063281e6611ecd61ddf; \>= c45cea83e13699bdfd47842e04d09dd43af4c371, \< 6abfaca8711803d0d7cc8c0fac1070a88509d463; \>= 307d2e6cebfca9d92f86c8e2c8e3dd4a8be46ba6, \< fbf9c4c714d3cdeb98b6a18e4d057f931cad1d81; \>= 73a0d12114b4bc1a9def79a623264754b9df698e, \< 2a1b5110c95e4d49c8c3906270dfcde680a5a7be; \>= 8a9c61c3ef187d8891225f9b932390670a43a0d3, \< 1632be63862f183cd5cf1cc094e698e6ec005dfd; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 4a68938f43b7c2663e4c90bb9bbe29ac8b9a42a0; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 4f5d71930f41be78557f9714393179025baacd65; \>= 3e3b5dfcd16a3e254aab61bd1e8c417dd4503102, \< 1b0e81416a24d6e9b8c2341e22e8bf48f8b8bfc9; 5ef16d2d172ee56714cff37cd005b98aba08ef5a; …; Linux 5.16.

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

Yes. Fixed in Linux 6abfaca8711803d0d7cc8c0fac1070a88509d463, Linux 2a1b5110c95e4d49c8c3906270dfcde680a5a7be, Linux 1632be63862f183cd5cf1cc094e698e6ec005dfd, Linux 4a68938f43b7c2663e4c90bb9bbe29ac8b9a42a0, Linux 4f5d71930f41be78557f9714393179025baacd65, Linux 1b0e81416a24d6e9b8c2341e22e8bf48f8b8bfc9. No fix listed yet: follow the vendor advisory.

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

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/a8e03bcad52dc9afabf650fdbad84f739cec9efa>
- patch: <https://git.kernel.org/stable/c/f81270125b50532624400063281e6611ecd61ddf>
- patch: <https://git.kernel.org/stable/c/6abfaca8711803d0d7cc8c0fac1070a88509d463>
- patch: <https://git.kernel.org/stable/c/fbf9c4c714d3cdeb98b6a18e4d057f931cad1d81>
- patch: <https://git.kernel.org/stable/c/2a1b5110c95e4d49c8c3906270dfcde680a5a7be>
- patch: <https://git.kernel.org/stable/c/1632be63862f183cd5cf1cc094e698e6ec005dfd>
- patch: <https://git.kernel.org/stable/c/4a68938f43b7c2663e4c90bb9bbe29ac8b9a42a0>
- patch: <https://git.kernel.org/stable/c/4f5d71930f41be78557f9714393179025baacd65>
- patch: <https://git.kernel.org/stable/c/1b0e81416a24d6e9b8c2341e22e8bf48f8b8bfc9>

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

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