{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-47515","published":"2024-05-24T15:15:12.937000Z","last_modified":"2026-08-04T10:17:06.950000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-476"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.14.98","version_end_excluding":"4.14.258"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.19.20","version_end_excluding":"4.19.221"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.20.7","version_end_excluding":"5.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.0.1","version_end_excluding":"5.4.165"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.85"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.15.8"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.0:-:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.0:rc6:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.0:rc7:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.0:rc8:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc1:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.16"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc2:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.16"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc3:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.16"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.16:rc4:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.16"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.0091,"percentile":0.58111,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2021-47515/","html_en":"/en/cve/CVE-2021-47515/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-47515","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-47515"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: fix the iif in the IPv6 socket control block\n\nWhen an IPv4 packet is received, the ip_rcv_core(...) sets the receiving\ninterface index into the IPv4 socket control block (v5.16-rc4,\nnet/ipv4/ip_input.c line 510):\n\n    IPCB(skb)->iif = skb->skb_iif;\n\nIf that IPv4 packet is meant to be encapsulated in an outer IPv6+SRH\nheader, the seg6_do_srh_encap(...) performs the required encapsulation.\nIn this case, the seg6_do_srh_encap function clears the IPv6 socket control\nblock (v5.16-rc4 net/ipv6/seg6_iptunnel.c line 163):\n\n    memset(IP6CB(skb), 0, sizeof(*IP6CB(skb)));\n\nThe memset(...) was introduced in commit ef489749aae5 (\"ipv6: sr: clear\nIP6CB(skb) on SRH ip4ip6 encapsulation\") a long time ago (2019-01-29).\n\nSince the IPv6 socket control block and the IPv4 socket control block share\nthe same memory area (skb->cb), the receiving interface index info is lost\n(IP6CB(skb)->iif is set to zero).\n\nAs a side effect, that condition triggers a NULL pointer dereference if\ncommit 0857d6f8c759 (\"ipv6: When forwarding count rx stats on the orig\nnetdev\") is applied.\n\nTo fix that issue, we set the IP6CB(skb)->iif with the index of the\nreceiving interface once again.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/6431e71093f3da586a00c6d931481ffb0dc2db0e","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/666521b3852d2b2f52d570f9122b1e4b50d96831","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/98adb2bbfa407c9290bda299d4c6f7a1c4ebd5e1","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ae68d93354e5bf5191ee673982251864ea24dd5c","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/b16d412e5f79734033df04e97d7ea2f50a8e9fe3","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ef8804e47c0a44ae106ead1740408af5ea6c6ee9","tags":["Patch"]}]}}