# CVE-2026-23167: nfc: nci: Fix race between rfkill and nci\_unregister\_device().

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.14% (percentile 1, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-02-14T16:01:30.755Z
- **Modified:** 2026-06-17T10:21:01.487Z

## Who should check

- Anyone running Linux \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< cd4412d5905ee580e96c48360dc98fcd9e6f3208; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< eaa5da5130deda26420273d4610cf6e4f794ed75; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 8ea4d96419fb20f15a52ce657d49f1e7c91eb7ac; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 546eba0b10989de9ccc7fd619e874a30561e2b88; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 126cd30cad37bc7c2c85fe2df2a522d4edf0a5c5; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< c3369fc5e6120a72169e71acd72e987907a682af; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< d2492688bb9fed6ab6e313682c387ae71a66ebae
- Anyone running Linux 3.2

## Description

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

nfc: nci: Fix race between rfkill and nci\_unregister\_device().

syzbot reported the splat below \[0\] without a repro.

It indicates that struct nci\_dev.cmd\_wq had been destroyed before
nci\_close\_device() was called via rfkill.

nci\_dev.cmd\_wq is only destroyed in nci\_unregister\_device(), which
(I think) was called from virtual\_ncidev\_close() when syzbot close()d
an fd of virtual\_ncidev.

The problem is that nci\_unregister\_device() destroys nci\_dev.cmd\_wq
first and then calls nfc\_unregister\_device(), which removes the
device from rfkill by rfkill\_unregister().

So, the device is still visible via rfkill even after nci\_dev.cmd\_wq
is destroyed.

Let's unregister the device from rfkill first in nci\_unregister\_device().

Note that we cannot call nfc\_unregister\_device() before
nci\_close\_device() because

  1) nfc\_unregister\_device() calls device\_del() which frees
     all memory allocated by devm\_kzalloc() and linked to
     ndev-\>conn\_info\_list

  2) nci\_rx\_work() could try to queue nci\_conn\_info to
     ndev-\>conn\_info\_list which could be leaked

Thus, nfc\_unregister\_device() is split into two functions so we
can remove rfkill interfaces only before nci\_close\_device().

\[0\]:
DEBUG\_LOCKS\_WARN\_ON(1)
WARNING: kernel/locking/lockdep.c:238 at hlock\_class kernel/locking/lockdep.c:238 \[inline\], CPU\#0: syz.0.8675/6349
WARNING: kernel/locking/lockdep.c:238 at check\_wait\_context kernel/locking/lockdep.c:4854 \[inline\], CPU\#0: syz.0.8675/6349
WARNING: kernel/locking/lockdep.c:238 at \_\_lock\_acquire+0x39d/0x2cf0 kernel/locking/lockdep.c:5187, CPU\#0: syz.0.8675/6349
Modules linked in:
CPU: 0 UID: 0 PID: 6349 Comm: syz.0.8675 Not tainted syzkaller \#0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/13/2026
RIP: 0010:hlock\_class kernel/locking/lockdep.c:238 \[inline\]
RIP: 0010:check\_wait\_context kernel/locking/lockdep.c:4854 \[inline\]
RIP: 0010:\_\_lock\_acquire+0x3a4/0x2cf0 kernel/locking/lockdep.c:5187
Code: 18 00 4c 8b 74 24 08 75 27 90 e8 17 f2 fc 02 85 c0 74 1c 83 3d 50 e0 4e 0e 00 75 13 48 8d 3d 43 f7 51 0e 48 c7 c6 8b 3a de 8d \<67\> 48 0f b9 3a 90 31 c0 0f b6 98 c4 00 00 00 41 8b 45 20 25 ff 1f
RSP: 0018:ffffc9000c767680 EFLAGS: 00010046
RAX: 0000000000000001 RBX: 0000000000040000 RCX: 0000000000080000
RDX: ffffc90013080000 RSI: ffffffff8dde3a8b RDI: ffffffff8ff24ca0
RBP: 0000000000000003 R08: ffffffff8fef35a3 R09: 1ffffffff1fde6b4
R10: dffffc0000000000 R11: fffffbfff1fde6b5 R12: 00000000000012a2
R13: ffff888030338ba8 R14: ffff888030338000 R15: ffff888030338b30
FS:  00007fa5995f66c0(0000) GS:ffff8881256f8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7e72f842d0 CR3: 00000000485a0000 CR4: 00000000003526f0
Call Trace:
 \<TASK\>
 lock\_acquire+0x106/0x330 kernel/locking/lockdep.c:5868
 touch\_wq\_lockdep\_map+0xcb/0x180 kernel/workqueue.c:3940
 \_\_flush\_workqueue+0x14b/0x14f0 kernel/workqueue.c:3982
 nci\_close\_device+0x302/0x630 net/nfc/nci/core.c:567
 nci\_dev\_down+0x3b/0x50 net/nfc/nci/core.c:639
 nfc\_dev\_down+0x152/0x290 net/nfc/core.c:161
 nfc\_rfkill\_set\_block+0x2d/0x100 net/nfc/core.c:179
 rfkill\_set\_block+0x1d2/0x440 net/rfkill/core.c:346
 rfkill\_fop\_write+0x461/0x5a0 net/rfkill/core.c:1301
 vfs\_write+0x29a/0xb90 fs/read\_write.c:684
 ksys\_write+0x150/0x270 fs/read\_write.c:738
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0xe2/0xf80 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7fa59b39acb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa5995f6028 EFLAGS: 00000246 ORIG\_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fa59b615fa0 RCX: 00007fa59b39acb9
RDX: 0000000000000008 RSI: 0000200000000080 RDI: 0000000000000007
RBP: 00007fa59b408bf7 R08: 
---truncated---

## Affected and fixed versions

- Linux: \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< cd4412d5905ee580e96c48360dc98fcd9e6f3208; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< eaa5da5130deda26420273d4610cf6e4f794ed75; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 8ea4d96419fb20f15a52ce657d49f1e7c91eb7ac; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 546eba0b10989de9ccc7fd619e874a30561e2b88; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 126cd30cad37bc7c2c85fe2df2a522d4edf0a5c5; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< c3369fc5e6120a72169e71acd72e987907a682af; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< d2492688bb9fed6ab6e313682c387ae71a66ebae (cvelist)
- Linux: 3.2 (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-2026-23167. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23167.md
Affected: Linux >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < cd4412d5905ee580e96c48360dc98fcd9e6f3208; >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < eaa5da5130deda26420273d4610cf6e4f794ed75; >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < 8ea4d96419fb20f15a52ce657d49f1e7c91eb7ac; >= 6a2968aaf50c7a22fced77a…
Fixed in: Linux 8ea4d96419fb20f15a52ce657d49f1e7c91eb7ac, Linux 546eba0b10989de9ccc7fd619e874a30561e2b88, Linux 126cd30cad37bc7c2c85fe2df2a522d4edf0a5c5

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-2026-23167 being exploited?

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

### How serious is CVE-2026-23167?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-23167?

Linux \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< cd4412d5905ee580e96c48360dc98fcd9e6f3208; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< eaa5da5130deda26420273d4610cf6e4f794ed75; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 8ea4d96419fb20f15a52ce657d49f1e7c91eb7ac; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 546eba0b10989de9ccc7fd619e874a30561e2b88; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 126cd30cad37bc7c2c85fe2df2a522d4edf0a5c5; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< c3369fc5e6120a72169e71acd72e987907a682af; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< d2492688bb9fed6ab6e313682c387ae71a66ebae; Linux 3.2.

### Is there a fix for CVE-2026-23167?

Yes. Fixed in Linux 8ea4d96419fb20f15a52ce657d49f1e7c91eb7ac, Linux 546eba0b10989de9ccc7fd619e874a30561e2b88, Linux 126cd30cad37bc7c2c85fe2df2a522d4edf0a5c5. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23167?

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/cd4412d5905ee580e96c48360dc98fcd9e6f3208>
- patch: <https://git.kernel.org/stable/c/eaa5da5130deda26420273d4610cf6e4f794ed75>
- patch: <https://git.kernel.org/stable/c/8ea4d96419fb20f15a52ce657d49f1e7c91eb7ac>
- patch: <https://git.kernel.org/stable/c/546eba0b10989de9ccc7fd619e874a30561e2b88>
- patch: <https://git.kernel.org/stable/c/126cd30cad37bc7c2c85fe2df2a522d4edf0a5c5>
- patch: <https://git.kernel.org/stable/c/c3369fc5e6120a72169e71acd72e987907a682af>
- patch: <https://git.kernel.org/stable/c/d2492688bb9fed6ab6e313682c387ae71a66ebae>

## 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-2026-23167>

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