{"id":"CVE-2021-47158","aliases":["CVE-2021-47158"],"related":[],"kind":"vulnerability","state":"published","title":"net: dsa: sja1105: add error handling in sja1105_setup()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: sja1105: add error handling in sja1105_setup()\n\nIf any of sja1105_static_config_load(), sja1105_clocking_setup() or\nsja1105_devlink_setup() fails, we can't just return in the middle of\nsja1105_setup() or memory will leak. Add a cleanup path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: sja1105: add error handling in sja1105_setup()\n\nIf any of sja1105_static_config_load(), sja1105_clocking_setup() or\nsja1105_devlink_setup() fails, we can't just return in the middle of\nsja1105_setup() or memory will leak. Add a cleanup path.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: dsa: sja1105: agregue manejo de errores en sja1105_setup() Si alguno de sja1105_static_config_load(), sja1105_clocking_setup() o sja1105_devlink_setup() falla, no podemos simplemente regresar en el medio de sja1105_setup() o se perderá memoria. Agregue una ruta de limpieza.","source":"nvd"}],"published":"2024-03-25T09:16:13.087Z","modified":"2026-08-05T08:46:22.882Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"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-401"],"affected":[{"ranges":[{"type":"git","introduced":"8aa9ebccae87621d997707e4f25e53fddd7e30e4","fixed":"dd8609f203448ca6d58ae71461208b3f6b0329b0","status":"affected"},{"type":"git","introduced":"8aa9ebccae87621d997707e4f25e53fddd7e30e4","fixed":"987e4ab8b8a4fcbf783069e03e7524cd39ffd563","status":"affected"},{"type":"git","introduced":"8aa9ebccae87621d997707e4f25e53fddd7e30e4","fixed":"cec279a898a3b004411682f212215ccaea1cd0fb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.10.42","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.9","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","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.2","fixed":"5.10.42"},{"status":"affected","introduced":"5.11","fixed":"5.12.9"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/dd8609f203448ca6d58ae71461208b3f6b0329b0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/987e4ab8b8a4fcbf783069e03e7524cd39ffd563","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cec279a898a3b004411682f212215ccaea1cd0fb","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:54:47.842Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47158","url":"https://www.cve.org/CVERecord?id=CVE-2021-47158","licence":"CVE Terms of Use","modified":"2026-08-05T08:46:22.882Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47158","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47158","licence":"Public domain","modified":"2026-08-04T10:16:49.340Z"}],"updatedAt":"2026-11-25T22:58:08.691Z","epss":{"score":0.00233,"percentile":0.15163,"date":"2026-12-01T12:00:22.000Z"}}