# CVE-2022-48984: can: slcan: fix freed work crash

> 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.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-10-21T20:06:01.083Z
- **Modified:** 2026-06-17T05:16:46.747Z

## Who should check

- Anyone running Linux \>= cfcb4465e9923bb9ac168abcea84e880633f9cef, \< 9e2709d58a14a10eb00d919acd7dec071c33f8c8; \>= cfcb4465e9923bb9ac168abcea84e880633f9cef, \< fb855e9f3b6b42c72af3f1eb0b288998fe0d5ebb
- Anyone running Linux 6.0

## Description

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

can: slcan: fix freed work crash

The LTP test pty03 is causing a crash in slcan:
  BUG: kernel NULL pointer dereference, address: 0000000000000008
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 0 P4D 0
  Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
  CPU: 0 PID: 348 Comm: kworker/0:3 Not tainted 6.0.8-1-default \#1 openSUSE Tumbleweed 9d20364b934f5aab0a9bdf84e8f45cfdfae39dab
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b-rebuilt.opensuse.org 04/01/2014
  Workqueue:  0x0 (events)
  RIP: 0010:process\_one\_work (/home/rich/kernel/linux/kernel/workqueue.c:706 /home/rich/kernel/linux/kernel/workqueue.c:2185)
  Code: 49 89 ff 41 56 41 55 41 54 55 53 48 89 f3 48 83 ec 10 48 8b 06 48 8b 6f 48 49 89 c4 45 30 e4 a8 04 b8 00 00 00 00 4c 0f 44 e0 \<49\> 8b 44 24 08 44 8b a8 00 01 00 00 41 83 e5 20 f6 45 10 04 75 0e
  RSP: 0018:ffffaf7b40f47e98 EFLAGS: 00010046
  RAX: 0000000000000000 RBX: ffff9d644e1b8b48 RCX: ffff9d649e439968
  RDX: 00000000ffff8455 RSI: ffff9d644e1b8b48 RDI: ffff9d64764aa6c0
  RBP: ffff9d649e4335c0 R08: 0000000000000c00 R09: ffff9d64764aa734
  R10: 0000000000000007 R11: 0000000000000001 R12: 0000000000000000
  R13: ffff9d649e4335e8 R14: ffff9d64490da780 R15: ffff9d64764aa6c0
  FS:  0000000000000000(0000) GS:ffff9d649e400000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000000000008 CR3: 0000000036424000 CR4: 00000000000006f0
  Call Trace:
   \<TASK\>
  worker\_thread (/home/rich/kernel/linux/kernel/workqueue.c:2436)
  kthread (/home/rich/kernel/linux/kernel/kthread.c:376)
  ret\_from\_fork (/home/rich/kernel/linux/arch/x86/entry/entry\_64.S:312)

Apparently, the slcan's tx\_work is freed while being scheduled. While
slcan\_netdev\_close() (netdev side) calls flush\_work(&sl-\>tx\_work),
slcan\_close() (tty side) does not. So when the netdev is never set UP,
but the tty is stuffed with bytes and forced to wakeup write, the work
is scheduled, but never flushed.

So add an additional flush\_work() to slcan\_close() to be sure the work
is flushed under all circumstances.

The Fixes commit below moved flush\_work() from slcan\_close() to
slcan\_netdev\_close(). What was the rationale behind it? Maybe we can
drop the one in slcan\_netdev\_close()?

I see the same pattern in can327. So it perhaps needs the very same fix.

## Affected and fixed versions

- Linux: \>= cfcb4465e9923bb9ac168abcea84e880633f9cef, \< 9e2709d58a14a10eb00d919acd7dec071c33f8c8; \>= cfcb4465e9923bb9ac168abcea84e880633f9cef, \< fb855e9f3b6b42c72af3f1eb0b288998fe0d5ebb (cvelist)
- Linux: 6.0 (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-48984. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48984.md
Affected: Linux >= cfcb4465e9923bb9ac168abcea84e880633f9cef, < 9e2709d58a14a10eb00d919acd7dec071c33f8c8; >= cfcb4465e9923bb9ac168abcea84e880633f9cef, < fb855e9f3b6b42c72af3f1eb0b288998fe0d5ebb; Linux 6.0
Fixed in: Linux 9e2709d58a14a10eb00d919acd7dec071c33f8c8

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

There is no confirmed exploitation: CVE-2022-48984 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-48984?

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

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

Linux \>= cfcb4465e9923bb9ac168abcea84e880633f9cef, \< 9e2709d58a14a10eb00d919acd7dec071c33f8c8; \>= cfcb4465e9923bb9ac168abcea84e880633f9cef, \< fb855e9f3b6b42c72af3f1eb0b288998fe0d5ebb; Linux 6.0.

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

Yes. Fixed in Linux 9e2709d58a14a10eb00d919acd7dec071c33f8c8. No fix listed yet: follow the vendor advisory.

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

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/9e2709d58a14a10eb00d919acd7dec071c33f8c8>
- patch: <https://git.kernel.org/stable/c/fb855e9f3b6b42c72af3f1eb0b288998fe0d5ebb>

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

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