CVE-2021-47243

sch_cake: Fix out of bounds when parsing TCP options and header

HIGH
7.1
CVSS Score
Published: May 21, 2024 at 02:19 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: sch_cake: Fix out of bounds when parsing TCP options and header The TCP option parser in cake qdisc (cake_get_tcpopt and cake_tcph_may_drop) could read one byte out of bounds. When the length is 1, the execution flow gets into the loop, reads one byte of the opcode, and if the opcode is neither TCPOPT_EOL nor TCPOPT_NOP, it reads one more byte, which exceeds the length of 1. This fix is inspired by commit 9609dad263f8 ("ipv4: tcp_input: fix stack out of bounds when parsing TCP options."). v2 changes: Added doff validation in cake_get_tcphdr to avoid parsing garbage as TCP header. Although it wasn't strictly an out-of-bounds access (memory was allocated), garbage values could be read where CAKE expected the TCP header if doff was smaller than 5.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19 ≤ v < 4.19.1964.19 ≤ v < 5.10.464.19 ≤ v < 5.12.134.19 ≤ v < 5.134.19 ≤ v < 5.4.1284.20 ≤ v < 5.4.1285.11 ≤ v < 5.12.135.5 ≤ v < 5.10.465.13 rc15.13 rc25.13 rc35.13 rc45.13 rc55.13 rc68b7138814f29933898ecd31dfc83e35a30ee69f5
Vendor states this is fixed in 3371392c60e2685af30bd4547badd880f5df2b3f (fixed)
Vendor states this is fixed in 3b491dd593d582ceeb27aa617600712a6bd14246 (fixed)
Vendor states this is fixed in 4cefa061fc63f4d2dff5ab4083f43857cd7a2335 (fixed)
Vendor states this is fixed in 595897ef118d6fe66690c4fc5b572028c9da95b7 (fixed)
Vendor states this is fixed in ba91c49dedbde758ba0b72f57ac90b06ddf8e548 (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 4.19.196 (unaffected)
Vendor states this is fixed in 5.10.46 (unaffected)
Vendor states this is fixed in 5.12.13 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.128 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3371392c60e2685af30bd4547badd880f5df2b3f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3b491dd593d582ceeb27aa617600712a6bd14246
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4cefa061fc63f4d2dff5ab4083f43857cd7a2335
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/595897ef118d6fe66690c4fc5b572028c9da95b7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ba91c49dedbde758ba0b72f57ac90b06ddf8e548

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.1HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card