CVE-2021-47245 json
netfilter: synproxy: Fix out of bounds when parsing TCP options
published 2024-05-21 2 y ago modified 2026-08-05 3 mo ago also EUVD-2021-33893
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.4.274, 4.9.274, 4.14.238, 4.19.196, 5.4.128, 5.10.46, 5.12.13, 5.13
- linux Debian 14, Debian 13, Debian 12 5.10.46-1
debian advisories DEBIAN-CVE-2021-47245
- linux Ubuntu 18.04 LTS 4.15.0-156.163
- linux Ubuntu 20.04 LTS 5.4.0-81.91
- linux-aws Ubuntu 18.04 LTS 4.15.0-1111.118
- linux-aws Ubuntu 20.04 LTS 5.4.0-1055.58
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1051.55
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1099.101
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1045.47
- linux-azure Ubuntu 20.04 LTS 5.4.0-1056.58
ubuntu advisories UBUNTU-CVE-2021-47245
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.219.1
- kernel-source SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.219.1
- kernel-default SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +2 more 4.12.14-122.219.1
- kernel-obs-build SLE Software Development Kit 12 SP5 4.12.14-122.219.1
- kernel-rt SLE Real Time 12 SP5 4.12.14-10.188.1
- kernel-syms-rt SLE Real Time 12 SP5 4.12.14-10.188.1
- kernel-rt_debug SLE Real Time 12 SP5 4.12.14-10.188.1
- kernel-source-rt SLE Real Time 12 SP5 4.12.14-10.188.1
suse advisories SUSE-SU-2024:2184-1SUSE-SU-2024:1983-1SUSE-SU-2024:1979-1
- git.kernel.org/stable/c/e1eb98cfeafdd85537e7e3cefe93ca9bfbcc3ea8 commit
- git.kernel.org/stable/c/576c1526b4d83c44ad7b673cb841f36cbc6cb6c4 commit
- git.kernel.org/stable/c/674b5f0c6a4fc5d3abce877048290cea6091fcb1 commit
- git.kernel.org/stable/c/7d9a9a1a88a3da574e019b4de756bc73337b3b0b commit
- git.kernel.org/stable/c/6defc77d48eff74075b80ad5925061b2fc010d98 commit
- git.kernel.org/stable/c/9cdf299ba4e153b5e56187648420de22c6216f02 commit
- git.kernel.org/stable/c/f648089337cb8ed40b2bb96e244f72b9d97dc96b commit
- git.kernel.org/stable/c/5fc177ab759418c9537433e63301096e733fb915 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-47245 updated cvss 5.5
kernel: netfilter: synproxy: Fix out of bounds when parsing TCP options
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: workaround, no fix planned “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/e1eb98cfeafdd85537e7e3cefe93ca9bfbcc3ea8
patch
-
git.kernel.org
/stable/c/576c1526b4d83c44ad7b673cb841f36cbc6cb6c4
patch
-
git.kernel.org
/stable/c/674b5f0c6a4fc5d3abce877048290cea6091fcb1
patch
-
git.kernel.org
/stable/c/7d9a9a1a88a3da574e019b4de756bc73337b3b0b
patch
-
git.kernel.org
/stable/c/6defc77d48eff74075b80ad5925061b2fc010d98
patch
-
git.kernel.org
/stable/c/9cdf299ba4e153b5e56187648420de22c6216f02
patch
-
git.kernel.org
/stable/c/f648089337cb8ed40b2bb96e244f72b9d97dc96b
patch
-
git.kernel.org
/stable/c/5fc177ab759418c9537433e63301096e733fb915
patch
Sources
- CVE List CVE-2021-47245
- NVD CVE-2021-47245
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.