CVE-2024-47659

smack: tcp: ipv4, fix incorrect labeling

9.1 critical EPSS 0.78%

Published 9 Oct 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-47659

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-2024-47659 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

smack: tcp: ipv4, fix incorrect labeling

Currently, Smack mirrors the label of incoming tcp/ipv4 connections: when a label 'foo' connects to a label 'bar' with tcp/ipv4, 'foo' always gets 'foo' in returned ipv4 packets. So, 1) returned packets are incorrectly labeled ('foo' instead of 'bar') 2) 'bar' can write to 'foo' without being authorized to write.

Here is a scenario how to see this:

* Take two machines, let's call them C and S, with active Smack in the default state (no settings, no rules, no labeled hosts, only builtin labels)

* At S, add Smack rule 'foo bar w' (labels 'foo' and 'bar' are instantiated at S at this moment)

* At S, at label 'bar', launch a program that listens for incoming tcp/ipv4 connections

* From C, at label 'foo', connect to the listener at S. (label 'foo' is instantiated at C at this moment) Connection succeedes and works.

* Send some data in both directions. * Collect network traffic of this connection.

All packets in both directions are labeled with the CIPSO of the label 'foo'. Hence, label 'bar' writes to 'foo' without being authorized, and even without ever being known at C.

If anybody cares: exactly the same happens with DCCP.

This behavior 1st manifested in release 2.6.29.4 (see Fixes below) and it looks unintentional. At least, no explanation was provided.

I changed returned packes label into the 'bar', to bring it into line with the Smack documentation claims.

Severity (CVSS)

9.1 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
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 high, integrity high, availability none: 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.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Oct 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.

ProductVersions
Linux
affected from 07feee8f812f7327a46186f7604df312c8c81962, before d3f56c653c65f170b172d3c23120bc64ada645d8
affected from 07feee8f812f7327a46186f7604df312c8c81962, before 5b4b304f196c070342e32a4752e1fa2e22fc0671
affected from 07feee8f812f7327a46186f7604df312c8c81962, before a948ec993541db4ef392b555c37a1186f4d61670
affected from 07feee8f812f7327a46186f7604df312c8c81962, before 0aea09e82eafa50a373fc8a4b84c1d4734751e2c
affected from 07feee8f812f7327a46186f7604df312c8c81962, before 0776bcf9cb6de46fdd94d10118de1cf9b05f83b9
affected from 07feee8f812f7327a46186f7604df312c8c81962, before 4be9fd15c3c88775bdf6fa37acabe6de85beebff
affected from 07feee8f812f7327a46186f7604df312c8c81962, before d3703fa94116fed91f64c7d1c7d284fb4369070f
affected from 07feee8f812f7327a46186f7604df312c8c81962, before 2fe209d0ad2e2729f7e22b9b31a86cc3ff0db550
Other versions: unaffected
Linux
affected 2.6.30
unaffected before 2.6.30
unaffected from 4.19.322 up to and including 4.19.*
unaffected from 5.4.284 up to and including 5.4.*
unaffected from 5.10.226 up to and including 5.10.*
unaffected from 5.15.167 up to and including 5.15.*
unaffected from 6.1.109 up to and including 6.1.*
unaffected from 6.6.50 up to and including 6.6.*
unaffected from 6.10.9 up to and including 6.10.*
unaffected 6.11 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-2024-47659 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-47659

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-2024-47659
trivy image --scanners vuln IMAGE | grep CVE-2024-47659

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

Source: the record CVE-2024-47659 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.