{"id":"CVE-2021-46998","aliases":["CVE-2021-46998"],"related":[],"kind":"vulnerability","state":"published","title":"ethernet:enic: Fix a use after free bug in enic_hard_start_xmit","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nethernet:enic: Fix a use after free bug in enic_hard_start_xmit\n\nIn enic_hard_start_xmit, it calls enic_queue_wq_skb(). Inside\nenic_queue_wq_skb, if some error happens, the skb will be freed\nby dev_kfree_skb(skb). But the freed skb is still used in\nskb_tx_timestamp(skb).\n\nMy patch makes enic_queue_wq_skb() return error and goto spin_unlock()\nincase of error. The solution is provided by Govind.\nSee https://lkml.org/lkml/2021/4/30/961.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nethernet:enic: Fix a use after free bug in enic_hard_start_xmit\n\nIn enic_hard_start_xmit, it calls enic_queue_wq_skb(). Inside\nenic_queue_wq_skb, if some error happens, the skb will be freed\nby dev_kfree_skb(skb). But the freed skb is still used in\nskb_tx_timestamp(skb).\n\nMy patch makes enic_queue_wq_skb() return error and goto spin_unlock()\nincase of error. The solution is provided by Govind.\nSee https://lkml.org/lkml/2021/4/30/961.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ethernet:enic: corrige un error de use after free en enic_hard_start_xmit. En enic_hard_start_xmit, llama a enic_queue_wq_skb(). Dentro de enic_queue_wq_skb, si ocurre algún error, dev_kfree_skb(skb) liberará el skb. Pero el skb liberado todavía se usa en skb_tx_timestamp(skb). Mi parche hace que enic_queue_wq_skb() devuelva un error y vaya a spin_unlock() en caso de error. La solución la proporciona Govind. Consulte https://lkml.org/lkml/2021/4/30/961.","source":"nvd"}],"published":"2024-02-28T08:13:21.651Z","modified":"2026-08-05T08:45:27.902Z","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:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3","fixed":"25a87b1f566b5eb2af2857a928f0e2310d900976","status":"affected"},{"type":"git","introduced":"fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3","fixed":"f7f6f07774091a6ddd98500b85386c3c6afb30d3","status":"affected"},{"type":"git","introduced":"fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3","fixed":"7afdd6aba95c8a526038e7abe283eeac3e4320f1","status":"affected"},{"type":"git","introduced":"fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3","fixed":"6892396ebf04ea2c021d80e10f4075e014cd7cc3","status":"affected"},{"type":"git","introduced":"fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3","fixed":"d90529392aaf498dafa95d212295d64b2cea4e24","status":"affected"},{"type":"git","introduced":"fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3","fixed":"643001b47adc844ae33510c4bb93c236667008a3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"4.19.191","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.120","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.38","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.11.22","lastAffected":"5.11.*","status":"unaffected"},{"type":"semver","introduced":"5.12.5","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":"4.16","fixed":"4.19.191"},{"status":"affected","introduced":"4.20","fixed":"5.4.120"},{"status":"affected","introduced":"5.5","fixed":"5.10.38"},{"status":"affected","introduced":"5.11","fixed":"5.11.22"},{"status":"affected","introduced":"5.12","fixed":"5.12.5"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/25a87b1f566b5eb2af2857a928f0e2310d900976","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7f6f07774091a6ddd98500b85386c3c6afb30d3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7afdd6aba95c8a526038e7abe283eeac3e4320f1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6892396ebf04ea2c021d80e10f4075e014cd7cc3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d90529392aaf498dafa95d212295d64b2cea4e24","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/643001b47adc844ae33510c4bb93c236667008a3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:00:51.946Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46998","url":"https://www.cve.org/CVERecord?id=CVE-2021-46998","licence":"CVE Terms of Use","modified":"2026-08-05T08:45:27.902Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46998","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46998","licence":"Public domain","modified":"2026-08-04T10:16:40.587Z"}],"updatedAt":"2026-11-25T22:58:08.608Z","epss":{"score":0.00244,"percentile":0.16765,"date":"2026-12-01T12:00:22.000Z"}}