# CVE-2022-48808: net: dsa: fix panic when DSA master device unbinds on shutdown

> 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 16, 2026-11-26)
- **Published:** 2024-07-16T11:43:59.089Z
- **Modified:** 2026-06-17T05:16:14.820Z

## Who should check

- Anyone running Linux \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< ff45899e732e57088985e3a497b1d9100571c0f5; \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< 89b60402d43cdab4387dbbf24afebda5cf092ae7; \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< ee534378f00561207656663d93907583958339ae
- Anyone running Linux 5.15

## Description

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

net: dsa: fix panic when DSA master device unbinds on shutdown

Rafael reports that on a system with LX2160A and Marvell DSA switches,
if a reboot occurs while the DSA master (dpaa2-eth) is up, the following
panic can be seen:

systemd-shutdown\[1\]: Rebooting.
Unable to handle kernel paging request at virtual address 00a0000800000041
\[00a0000800000041\] address between user and kernel address ranges
Internal error: Oops: 96000004 \[\#1\] PREEMPT SMP
CPU: 6 PID: 1 Comm: systemd-shutdow Not tainted 5.16.5-00042-g8f5585009b24 \#32
pc : dsa\_slave\_netdevice\_event+0x130/0x3e4
lr : raw\_notifier\_call\_chain+0x50/0x6c
Call trace:
 dsa\_slave\_netdevice\_event+0x130/0x3e4
 raw\_notifier\_call\_chain+0x50/0x6c
 call\_netdevice\_notifiers\_info+0x54/0xa0
 \_\_dev\_close\_many+0x50/0x130
 dev\_close\_many+0x84/0x120
 unregister\_netdevice\_many+0x130/0x710
 unregister\_netdevice\_queue+0x8c/0xd0
 unregister\_netdev+0x20/0x30
 dpaa2\_eth\_remove+0x68/0x190
 fsl\_mc\_driver\_remove+0x20/0x5c
 \_\_device\_release\_driver+0x21c/0x220
 device\_release\_driver\_internal+0xac/0xb0
 device\_links\_unbind\_consumers+0xd4/0x100
 \_\_device\_release\_driver+0x94/0x220
 device\_release\_driver+0x28/0x40
 bus\_remove\_device+0x118/0x124
 device\_del+0x174/0x420
 fsl\_mc\_device\_remove+0x24/0x40
 \_\_fsl\_mc\_device\_remove+0xc/0x20
 device\_for\_each\_child+0x58/0xa0
 dprc\_remove+0x90/0xb0
 fsl\_mc\_driver\_remove+0x20/0x5c
 \_\_device\_release\_driver+0x21c/0x220
 device\_release\_driver+0x28/0x40
 bus\_remove\_device+0x118/0x124
 device\_del+0x174/0x420
 fsl\_mc\_bus\_remove+0x80/0x100
 fsl\_mc\_bus\_shutdown+0xc/0x1c
 platform\_shutdown+0x20/0x30
 device\_shutdown+0x154/0x330
 \_\_do\_sys\_reboot+0x1cc/0x250
 \_\_arm64\_sys\_reboot+0x20/0x30
 invoke\_syscall.constprop.0+0x4c/0xe0
 do\_el0\_svc+0x4c/0x150
 el0\_svc+0x24/0xb0
 el0t\_64\_sync\_handler+0xa8/0xb0
 el0t\_64\_sync+0x178/0x17c

It can be seen from the stack trace that the problem is that the
deregistration of the master causes a dev\_close(), which gets notified
as NETDEV\_GOING\_DOWN to dsa\_slave\_netdevice\_event().
But dsa\_switch\_shutdown() has already run, and this has unregistered the
DSA slave interfaces, and yet, the NETDEV\_GOING\_DOWN handler attempts to
call dev\_close\_many() on those slave interfaces, leading to the problem.

The previous attempt to avoid the NETDEV\_GOING\_DOWN on the master after
dsa\_switch\_shutdown() was called seems improper. Unregistering the slave
interfaces is unnecessary and unhelpful. Instead, after the slaves have
stopped being uppers of the DSA master, we can now reset to NULL the
master-\>dsa\_ptr pointer, which will make DSA start ignoring all future
notifier events on the master.

## Affected and fixed versions

- Linux: \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< ff45899e732e57088985e3a497b1d9100571c0f5; \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< 89b60402d43cdab4387dbbf24afebda5cf092ae7; \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< ee534378f00561207656663d93907583958339ae (cvelist)
- Linux: 5.15 (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-48808. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48808.md
Affected: Linux >= 0650bf52b31ff35dc6430fc2e37969c36baba724, < ff45899e732e57088985e3a497b1d9100571c0f5; >= 0650bf52b31ff35dc6430fc2e37969c36baba724, < 89b60402d43cdab4387dbbf24afebda5cf092ae7; >= 0650bf52b31ff35dc6430fc2e37969c36baba724, < ee534378f00561207656663d93907583958339ae; Linux 5.15
Fixed in: Linux 89b60402d43cdab4387dbbf24afebda5cf092ae7

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

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

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

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

Linux \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< ff45899e732e57088985e3a497b1d9100571c0f5; \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< 89b60402d43cdab4387dbbf24afebda5cf092ae7; \>= 0650bf52b31ff35dc6430fc2e37969c36baba724, \< ee534378f00561207656663d93907583958339ae; Linux 5.15.

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

Yes. Fixed in Linux 89b60402d43cdab4387dbbf24afebda5cf092ae7. No fix listed yet: follow the vendor advisory.

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

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/ff45899e732e57088985e3a497b1d9100571c0f5>
- patch: <https://git.kernel.org/stable/c/89b60402d43cdab4387dbbf24afebda5cf092ae7>
- patch: <https://git.kernel.org/stable/c/ee534378f00561207656663d93907583958339ae>

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

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