# CVE-2021-47439: net: dsa: microchip: Added the condition for scheduling ksz_mib_read_work

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-05-22T06:19:34.192Z
- Modified: 2026-06-17T04:17:28.417Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

net: dsa: microchip: Added the condition for scheduling ksz_mib_read_work

When the ksz module is installed and removed using rmmod, kernel crashes
with null pointer dereferrence error. During rmmod, ksz_switch_remove
function tries to cancel the mib_read_workqueue using
cancel_delayed_work_sync routine and unregister switch from dsa.

During dsa_unregister_switch it calls ksz_mac_link_down, which in turn
reschedules the workqueue since mib_interval is non-zero.
Due to which queue executed after mib_interval and it tries to access
dp->slave. But the slave is unregistered in the ksz_switch_remove
function. Hence kernel crashes.

To avoid this crash, before canceling the workqueue, resetted the
mib_interval to 0.

v1 -> v2:
-Removed the if condition in ksz_mib_read_work

(As written by CVE List.)

## Affected

- Linux Linux: from 469b390e1ba330e888175e55d78573db2e9a8cb4 before f2e1de075018cf71bcd7d628e9f759cb8540b0c3; from 469b390e1ba330e888175e55d78573db2e9a8cb4 before 383239a33cf29ebee9ce0d4e0e5c900b77a16148; from 469b390e1ba330e888175e55d78573db2e9a8cb4 before ef1100ef20f29aec4e62abeccdb5bdbebba1e378; 5.7 (not affected: before 5.7; from 5.10.75 up to 5.10.*; from 5.14.14 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 5.7 before 5.10.75; from 5.11 before 5.14.14; 5.15

## References

- <https://git.kernel.org/stable/c/f2e1de075018cf71bcd7d628e9f759cb8540b0c3> (patch)
- <https://git.kernel.org/stable/c/383239a33cf29ebee9ce0d4e0e5c900b77a16148> (patch)
- <https://git.kernel.org/stable/c/ef1100ef20f29aec4e62abeccdb5bdbebba1e378> (patch)

## Sources

- CVE List: [CVE-2021-47439](https://www.cve.org/CVERecord?id=CVE-2021-47439), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47439](https://nvd.nist.gov/vuln/detail/CVE-2021-47439), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47439 · Whole record: https://cve.day/CVE-2021-47439.json · Rebuilt by cve.day 2026-11-25T22:58:08.858Z
