{"id":"CVE-2021-47560","aliases":["CVE-2021-47560"],"related":[],"kind":"vulnerability","state":"published","title":"mlxsw: spectrum: Protect driver from buggy firmware","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: spectrum: Protect driver from buggy firmware\n\nWhen processing port up/down events generated by the device's firmware,\nthe driver protects itself from events reported for non-existent local\nports, but not the CPU port (local port 0), which exists, but lacks a\nnetdev.\n\nThis can result in a NULL pointer dereference when calling\nnetif_carrier_{on,off}().\n\nFix this by bailing early when processing an event reported for the CPU\nport. Problem was only observed when running on top of a buggy emulator.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: spectrum: Protect driver from buggy firmware\n\nWhen processing port up/down events generated by the device's firmware,\nthe driver protects itself from events reported for non-existent local\nports, but not the CPU port (local port 0), which exists, but lacks a\nnetdev.\n\nThis can result in a NULL pointer dereference when calling\nnetif_carrier_{on,off}().\n\nFix this by bailing early when processing an event reported for the CPU\nport. Problem was only observed when running on top of a buggy emulator.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mlxsw: espectro: protege el controlador de firmware defectuoso Al procesar eventos de activación/desactivación de puerto generados por el firmware del dispositivo, el controlador se protege de eventos informados para puertos locales inexistentes, pero no el puerto de la CPU (puerto local 0), que existe, pero carece de netdev. Esto puede resultar en una desreferencia del puntero NULL al llamar a netif_carrier_{on,off}(). Solucione este problema cancelando el proceso con antelación al procesar un evento informado para el puerto de la CPU. El problema solo se observó cuando se ejecutaba sobre un emulador con errores.","source":"nvd"}],"published":"2024-05-24T15:12:49.369Z","modified":"2026-06-17T04:17:46.167Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"28b1987ef5064dd5c43538ba1168ef7b801f3cad","fixed":"90d0736876c50ecde1a3275636a06b9ddb1cace9","status":"affected"},{"type":"git","introduced":"28b1987ef5064dd5c43538ba1168ef7b801f3cad","fixed":"da4d70199e5d82da664a80077508d6c18f5e76df","status":"affected"},{"type":"git","introduced":"28b1987ef5064dd5c43538ba1168ef7b801f3cad","fixed":"63b08b1f6834bbb0b4f7783bf63b80c8c8e9a047","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.10.83","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.6","lastAffected":"5.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4","fixed":"5.10.83"},{"status":"affected","introduced":"5.11","fixed":"5.15.6"},{"status":"affected","version":"5.16"},{"status":"affected","version":"5.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/90d0736876c50ecde1a3275636a06b9ddb1cace9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da4d70199e5d82da664a80077508d6c18f5e76df","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63b08b1f6834bbb0b4f7783bf63b80c8c8e9a047","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-24T19:11:25.762Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47560","url":"https://www.cve.org/CVERecord?id=CVE-2021-47560","licence":"CVE Terms of Use","modified":"2026-05-11T13:56:59.323Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47560","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47560","licence":"Public domain","modified":"2026-06-17T04:17:46.167Z"}],"updatedAt":"2026-11-25T22:58:08.916Z","epss":{"score":0.00224,"percentile":0.13883,"date":"2026-12-01T12:00:22.000Z"}}