{"id":"CVE-2021-47668","aliases":["CVE-2021-47668"],"related":[],"kind":"vulnerability","state":"published","title":"can: dev: can_restart: fix use after free bug","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: dev: can_restart: fix use after free bug\n\nAfter calling netif_rx_ni(skb), dereferencing skb is unsafe.\nEspecially, the can_frame cf which aliases skb memory is accessed\nafter the netif_rx_ni() in:\n      stats->rx_bytes += cf->len;\n\nReordering the lines solves the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: dev: can_restart: fix use after free bug\n\nAfter calling netif_rx_ni(skb), dereferencing skb is unsafe.\nEspecially, the can_frame cf which aliases skb memory is accessed\nafter the netif_rx_ni() in:\n      stats->rx_bytes += cf->len;\n\nReordering the lines solves the issue.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: dev: can_restart: fix use after free bug. Tras llamar a netif_rx_ni(skb), desreferenciar skb no es seguro. En particular, se accede al cf can_frame, que crea un alias de memoria skb, después de netif_rx_ni() en: stats-&gt;rx_bytes += cf-&gt;len;. Reordenar las líneas soluciona el problema.","source":"nvd"}],"published":"2025-04-17T18:01:29.315Z","modified":"2026-08-05T08:48:48.169Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"CISA-ADP","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"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"39549eef3587f1c1e8c65c88a2400d10fd30ea17","fixed":"260925a0b7d2da5449f8ecfd02c1405e0c8a45b8","status":"affected"},{"type":"git","introduced":"39549eef3587f1c1e8c65c88a2400d10fd30ea17","fixed":"bbc6847b9b8978b520f62fbc7c68c54ef0f8d282","status":"affected"},{"type":"git","introduced":"39549eef3587f1c1e8c65c88a2400d10fd30ea17","fixed":"92668d28c7e6a7a2ba07df287669ffcdf650c421","status":"affected"},{"type":"git","introduced":"39549eef3587f1c1e8c65c88a2400d10fd30ea17","fixed":"08ab951787098ae0b6c0364aeea7a8138226f234","status":"affected"},{"type":"git","introduced":"39549eef3587f1c1e8c65c88a2400d10fd30ea17","fixed":"ac48ef15826e83f4206c47add61072e8fc76d328","status":"affected"},{"type":"git","introduced":"39549eef3587f1c1e8c65c88a2400d10fd30ea17","fixed":"593c072b7b3c4d7044416eb039d9ad706bedd67a","status":"affected"},{"type":"git","introduced":"39549eef3587f1c1e8c65c88a2400d10fd30ea17","fixed":"03f16c5075b22c8902d2af739969e878b0879c94","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.31","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.31","status":"unaffected"},{"type":"semver","introduced":"4.4.254","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.254","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.218","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.171","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.93","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.11","lastAffected":"5.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.11","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":"2.6.31","fixed":"4.4.254"},{"status":"affected","introduced":"4.5","fixed":"4.9.254"},{"status":"affected","introduced":"4.10","fixed":"4.14.218"},{"status":"affected","introduced":"4.15","fixed":"4.19.171"},{"status":"affected","introduced":"4.20","fixed":"5.4.93"},{"status":"affected","introduced":"5.5","fixed":"5.10.11"},{"status":"affected","version":"5.11"},{"status":"affected","version":"5.11"},{"status":"affected","version":"5.11"},{"status":"affected","version":"5.11"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/260925a0b7d2da5449f8ecfd02c1405e0c8a45b8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bbc6847b9b8978b520f62fbc7c68c54ef0f8d282","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92668d28c7e6a7a2ba07df287669ffcdf650c421","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08ab951787098ae0b6c0364aeea7a8138226f234","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac48ef15826e83f4206c47add61072e8fc76d328","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/593c072b7b3c4d7044416eb039d9ad706bedd67a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03f16c5075b22c8902d2af739969e878b0879c94","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-17T18:17:56.944Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47668","url":"https://www.cve.org/CVERecord?id=CVE-2021-47668","licence":"CVE Terms of Use","modified":"2026-08-05T08:48:48.169Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47668","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47668","licence":"Public domain","modified":"2026-08-04T10:17:12.543Z"}],"updatedAt":"2026-11-25T22:58:09.014Z","epss":{"score":0.0024,"percentile":0.16163,"date":"2026-12-01T12:00:22.000Z"}}