CVE-2021-47245

netfilter: synproxy: Fix out of bounds when parsing TCP options

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.8%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: synproxy: Fix out of bounds when parsing TCP options The TCP option parser in synproxy (synproxy_parse_options) 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 an early return when length < 0 to avoid calling skb_header_pointer with negative length.

Affected

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

3.12 ≤ v < 4.14.2383.12 ≤ v < 4.19.1963.12 ≤ v < 4.4.2743.12 ≤ v < 4.9.2743.12 ≤ v < 5.10.463.12 ≤ v < 5.12.133.12 ≤ v < 5.133.12 ≤ v < 5.4.1284.10 ≤ v < 4.14.2384.15 ≤ v < 4.19.1964.20 ≤ v < 5.4.1284.5 ≤ v < 4.9.2745.11 ≤ v < 5.12.135.5 ≤ v < 5.10.4648b1de4c110a7afa4b85862f6c75af817db26fad5.13 rc15.13 rc25.13 rc35.13 rc45.13 rc55.13 rc6
Vendor states this is fixed in 576c1526b4d83c44ad7b673cb841f36cbc6cb6c4 (fixed)
Vendor states this is fixed in 5fc177ab759418c9537433e63301096e733fb915 (fixed)
Vendor states this is fixed in 674b5f0c6a4fc5d3abce877048290cea6091fcb1 (fixed)
Vendor states this is fixed in 6defc77d48eff74075b80ad5925061b2fc010d98 (fixed)
Vendor states this is fixed in 7d9a9a1a88a3da574e019b4de756bc73337b3b0b (fixed)
Vendor states this is fixed in 9cdf299ba4e153b5e56187648420de22c6216f02 (fixed)
Vendor states this is fixed in e1eb98cfeafdd85537e7e3cefe93ca9bfbcc3ea8 (fixed)
Vendor states this is fixed in f648089337cb8ed40b2bb96e244f72b9d97dc96b (fixed)
Vendor states this is fixed in 3.12 (unaffected)
Vendor states this is fixed in 4.14.238 (unaffected)
Vendor states this is fixed in 4.19.196 (unaffected)
Vendor states this is fixed in 4.4.274 (unaffected)
Vendor states this is fixed in 4.9.274 (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 (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/576c1526b4d83c44ad7b673cb841f36cbc6cb6c4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5fc177ab759418c9537433e63301096e733fb915
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/674b5f0c6a4fc5d3abce877048290cea6091fcb1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6defc77d48eff74075b80ad5925061b2fc010d98
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7d9a9a1a88a3da574e019b4de756bc73337b3b0b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9cdf299ba4e153b5e56187648420de22c6216f02
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e1eb98cfeafdd85537e7e3cefe93ca9bfbcc3ea8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f648089337cb8ed40b2bb96e244f72b9d97dc96b

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
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