CVE-2021-47245
netfilter: synproxy: Fix out of bounds when parsing TCP options
Check your servers for CVE-2021-47245
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47245 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.78%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 57.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 23 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before e1eb98cfeafdd85537e7e3cefe93ca9bfbcc3ea8 affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before 576c1526b4d83c44ad7b673cb841f36cbc6cb6c4 affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before 674b5f0c6a4fc5d3abce877048290cea6091fcb1 affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before 7d9a9a1a88a3da574e019b4de756bc73337b3b0b affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before 6defc77d48eff74075b80ad5925061b2fc010d98 affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before 9cdf299ba4e153b5e56187648420de22c6216f02 affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before f648089337cb8ed40b2bb96e244f72b9d97dc96b affected from 48b1de4c110a7afa4b85862f6c75af817db26fad, before 5fc177ab759418c9537433e63301096e733fb915
Other versions: unaffected
|
| Linux |
affected 3.12 unaffected before 3.12 unaffected from 4.4.274 up to and including 4.4.* unaffected from 4.9.274 up to and including 4.9.* unaffected from 4.14.238 up to and including 4.14.* unaffected from 4.19.196 up to and including 4.19.* unaffected from 5.4.128 up to and including 5.4.* unaffected from 5.10.46 up to and including 5.10.* unaffected from 5.12.13 up to and including 5.12.* unaffected 5.13 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47245 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47245
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-47245
trivy image --scanners vuln IMAGE | grep CVE-2021-47245
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e1eb98cfeafdd85537e7e3cefe93ca9bfbcc3ea8 git.kernel.org
- https://git.kernel.org/stable/c/576c1526b4d83c44ad7b673cb841f36cbc6cb6c4 git.kernel.org
- https://git.kernel.org/stable/c/674b5f0c6a4fc5d3abce877048290cea6091fcb1 git.kernel.org
- https://git.kernel.org/stable/c/7d9a9a1a88a3da574e019b4de756bc73337b3b0b git.kernel.org
- https://git.kernel.org/stable/c/6defc77d48eff74075b80ad5925061b2fc010d98 git.kernel.org
- https://git.kernel.org/stable/c/9cdf299ba4e153b5e56187648420de22c6216f02 git.kernel.org
- https://git.kernel.org/stable/c/f648089337cb8ed40b2bb96e244f72b9d97dc96b git.kernel.org
- https://git.kernel.org/stable/c/5fc177ab759418c9537433e63301096e733fb915 git.kernel.org
Source: the record CVE-2021-47245 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse