{"id":"CVE-2021-47439","published":"2024-05-22T06:19:34Z","modified":"2026-05-11T13:54:43Z","title":"net: dsa: microchip: Added the condition for scheduling ksz_mib_read_work","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: microchip: Added the condition for scheduling ksz_mib_read_work\n\nWhen the ksz module is installed and removed using rmmod, kernel crashes\nwith null pointer dereferrence error. During rmmod, ksz_switch_remove\nfunction tries to cancel the mib_read_workqueue using\ncancel_delayed_work_sync routine and unregister switch from dsa.\n\nDuring dsa_unregister_switch it calls ksz_mac_link_down, which in turn\nreschedules the workqueue since mib_interval is non-zero.\nDue to which queue executed after mib_interval and it tries to access\ndp->slave. But the slave is unregistered in the ksz_switch_remove\nfunction. Hence kernel crashes.\n\nTo avoid this crash, before canceling the workqueue, resetted the\nmib_interval to 0.\n\nv1 -> v2:\n-Removed the if condition in ksz_mib_read_work","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00225,"percentile":0.13438,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f2e1de075018cf71bcd7d628e9f759cb8540b0c3","tags":[]},{"url":"https://git.kernel.org/stable/c/383239a33cf29ebee9ce0d4e0e5c900b77a16148","tags":[]},{"url":"https://git.kernel.org/stable/c/ef1100ef20f29aec4e62abeccdb5bdbebba1e378","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":2.69},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 469b390e1ba330e888175e55d78573db2e9a8cb4, < f2e1de075018cf71bcd7d628e9f759cb8540b0c3",">= 469b390e1ba330e888175e55d78573db2e9a8cb4, < 383239a33cf29ebee9ce0d4e0e5c900b77a16148",">= 469b390e1ba330e888175e55d78573db2e9a8cb4, < ef1100ef20f29aec4e62abeccdb5bdbebba1e378"]},{"vendor":"Linux","product":"Linux","versions":["5.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-29T18:42:32.231853Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34444","exploited":false,"provenance":"source"}}