# CVE-2021-47163: tipc: wait and exit until all work queues are done

> 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.19% (percentile 5, 2026-11-28)
- **CWE:** CWE-667
- **Published:** 2024-03-25T09:16:16.676Z
- **Modified:** 2026-08-05T08:46:27.215Z

## Who should check

- Anyone running Linux \>= d0f91938bede204a343473792529e0db7d599836, \< d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa; \>= d0f91938bede204a343473792529e0db7d599836, \< 5195ec5e365a2a9331bfeb585b613a6e94f98dba; \>= d0f91938bede204a343473792529e0db7d599836, \< b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d; \>= d0f91938bede204a343473792529e0db7d599836, \< 04c26faa51d1e2fe71cf13c45791f5174c37f986
- Anyone running Linux 4.1

## Description

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

tipc: wait and exit until all work queues are done

On some host, a crash could be triggered simply by repeating these
commands several times:

  \# modprobe tipc
  \# tipc bearer enable media udp name UDP1 localip 127.0.0.1
  \# rmmod tipc

  \[\] BUG: unable to handle kernel paging request at ffffffffc096bb00
  \[\] Workqueue: events 0xffffffffc096bb00
  \[\] Call Trace:
  \[\]  ? process\_one\_work+0x1a7/0x360
  \[\]  ? worker\_thread+0x30/0x390
  \[\]  ? create\_worker+0x1a0/0x1a0
  \[\]  ? kthread+0x116/0x130
  \[\]  ? kthread\_flush\_work\_fn+0x10/0x10
  \[\]  ? ret\_from\_fork+0x35/0x40

When removing the TIPC module, the UDP tunnel sock will be delayed to
release in a work queue as sock\_release() can't be done in rtnl\_lock().
If the work queue is schedule to run after the TIPC module is removed,
kernel will crash as the work queue function cleanup\_beareri() code no
longer exists when trying to invoke it.

To fix it, this patch introduce a member wq\_count in tipc\_net to track
the numbers of work queues in schedule, and  wait and exit until all
work queues are done in tipc\_exit\_net().

## Affected and fixed versions

- Linux: \>= d0f91938bede204a343473792529e0db7d599836, \< d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa; \>= d0f91938bede204a343473792529e0db7d599836, \< 5195ec5e365a2a9331bfeb585b613a6e94f98dba; \>= d0f91938bede204a343473792529e0db7d599836, \< b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d; \>= d0f91938bede204a343473792529e0db7d599836, \< 04c26faa51d1e2fe71cf13c45791f5174c37f986 (cvelist)
- Linux: 4.1 (cvelist)

## Mitigation

- Upgrade Linux to 04c26faa51d1e2fe71cf13c45791f5174c37f986 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47163.md
Affected: Linux >= d0f91938bede204a343473792529e0db7d599836, < d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa; >= d0f91938bede204a343473792529e0db7d599836, < 5195ec5e365a2a9331bfeb585b613a6e94f98dba; >= d0f91938bede204a343473792529e0db7d599836, < b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d; >= d0f91938bede204a3434737…
Fixed in: Linux 5195ec5e365a2a9331bfeb585b613a6e94f98dba, Linux 04c26faa51d1e2fe71cf13c45791f5174c37f986

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-2021-47163 being exploited?

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

### How serious is CVE-2021-47163?

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

### Which versions are affected by CVE-2021-47163?

Linux \>= d0f91938bede204a343473792529e0db7d599836, \< d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa; \>= d0f91938bede204a343473792529e0db7d599836, \< 5195ec5e365a2a9331bfeb585b613a6e94f98dba; \>= d0f91938bede204a343473792529e0db7d599836, \< b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d; \>= d0f91938bede204a343473792529e0db7d599836, \< 04c26faa51d1e2fe71cf13c45791f5174c37f986; Linux 4.1.

### Is there a fix for CVE-2021-47163?

Yes. Fixed in Linux 5195ec5e365a2a9331bfeb585b613a6e94f98dba, Linux 04c26faa51d1e2fe71cf13c45791f5174c37f986. Upgrade Linux to 04c26faa51d1e2fe71cf13c45791f5174c37f986 or later.

### How do I check if I'm affected by CVE-2021-47163?

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/d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa>
- patch: <https://git.kernel.org/stable/c/5195ec5e365a2a9331bfeb585b613a6e94f98dba>
- patch: <https://git.kernel.org/stable/c/b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d>
- patch: <https://git.kernel.org/stable/c/04c26faa51d1e2fe71cf13c45791f5174c37f986>

## 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-2021-47163>

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