{"id":"CVE-2021-47243","published":"2024-05-21T14:19:42Z","modified":"2026-08-05T08:46:54Z","title":"sch_cake: Fix out of bounds when parsing TCP options and header","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsch_cake: Fix out of bounds when parsing TCP options and header\n\nThe TCP option parser in cake qdisc (cake_get_tcpopt and\ncake_tcph_may_drop) could read one byte out of bounds. When the length\nis 1, the execution flow gets into the loop, reads one byte of the\nopcode, and if the opcode is neither TCPOPT_EOL nor TCPOPT_NOP, it reads\none more byte, which exceeds the length of 1.\n\nThis fix is inspired by commit 9609dad263f8 (\"ipv4: tcp_input: fix stack\nout of bounds when parsing TCP options.\").\n\nv2 changes:\n\nAdded doff validation in cake_get_tcphdr to avoid parsing garbage as TCP\nheader. Although it wasn't strictly an out-of-bounds access (memory was\nallocated), garbage values could be read where CAKE expected the TCP\nheader if doff was smaller than 5.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00261,"percentile":0.18253,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/595897ef118d6fe66690c4fc5b572028c9da95b7","tags":[]},{"url":"https://git.kernel.org/stable/c/4cefa061fc63f4d2dff5ab4083f43857cd7a2335","tags":[]},{"url":"https://git.kernel.org/stable/c/3b491dd593d582ceeb27aa617600712a6bd14246","tags":[]},{"url":"https://git.kernel.org/stable/c/3371392c60e2685af30bd4547badd880f5df2b3f","tags":[]},{"url":"https://git.kernel.org/stable/c/ba91c49dedbde758ba0b72f57ac90b06ddf8e548","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.65},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8b7138814f29933898ecd31dfc83e35a30ee69f5, < 595897ef118d6fe66690c4fc5b572028c9da95b7",">= 8b7138814f29933898ecd31dfc83e35a30ee69f5, < 4cefa061fc63f4d2dff5ab4083f43857cd7a2335",">= 8b7138814f29933898ecd31dfc83e35a30ee69f5, < 3b491dd593d582ceeb27aa617600712a6bd14246",">= 8b7138814f29933898ecd31dfc83e35a30ee69f5, < 3371392c60e2685af30bd4547badd880f5df2b3f",">= 8b7138814f29933898ecd31dfc83e35a30ee69f5, < ba91c49dedbde758ba0b72f57ac90b06ddf8e548"]},{"vendor":"Linux","product":"Linux","versions":["4.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:39:57.595123Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33891","exploited":false,"provenance":"source"}}