CVE-2026-139385
published high CVSS 3.1 · 7.8ipvs: fix buffer overflow when sending sync messages
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < b8bf3f5d57deb99fd37a0f48e19c0a971c7d4558 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4fe760dc1423a055c47fdbbdd2b55c0c39d8be33 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < fd252d7fb19881c845b1b99905ae2bbb6d51b7ef · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4f7c8b9de7e322a0c7802d3d7667794a318acdf3 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 87fcafc86e46c644297e59b709d3f712f4c02c03 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e95811f53987778f24428591d9cea8381e192d91 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < bb53343912435e7fa0bc9bbe4f7087690624420a · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3e3fe49e8678c1a3d535ed02f32a9a6e80674263 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ipvs: fix buffer overflow when sending sync messages Sashiko reports for possible heap buffer overflow when generating sync message for the v0 and v1 message formats. We should read the cp->flags only once because another CPU can concurrently set the SEQ_MASK between the two reads. Note that IPVS does not set the SEQ_MASK anymore for the ip_vs_ftp.c helper starting from commit 7f1c40757951 ("IPVS: make FTP work with full NAT support") (2.6.36+), so the problem should not be reproducible.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The racing write comes from forged IPVS sync messages that the attacker sends to a backup daemon they started inside their own netns. The overflow is in ip_vs_sync_conn()/ip_vs_sync_conn_v0(), reached when the attacker drives packets through their own IPVS service. Hitting a real director remotely would need a sync-segment attacker plus a non-default config, so this is local. AC:L - The attacker drives both sides of the race. Their own packets call ip_vs_sync_conn() on every packet (sync_threshold 0, sync_period 1), and their own forged sync messages make ip_vs_proc_conn() flip SEQ_MASK under cp->lock between the length read and the option write. Lost races are harmless and can be retried indefinitely. PR:L - IPVS_CMD_NEW_DAEMON and the service commands are GENL_ADMIN_PERM on a netnsok family, so CAP_NET_ADMIN in a user-namespace-owned netns is enough (unshare -Urn). The IPVS sync sysctls are writable there, and the genl family alias autoloads ip_vs. UI:N - No victim action is needed. The attacker sets up the service, both sync daemons, the packets and the forged sync updates themselves. S:U - The overflow corrupts kernel heap memory in the same kernel security authority; no VM or hardware boundary is crossed. C:H - With IPVS_DAEMON_ATTR_SYNC_MAXLEN set to 1, each sync buffer is exactly one entry long (e.g. v0 kmalloc(28) from kmalloc-32), so the 24/26-byte seq-option write corrupts the adjacent slab object. Such a heap overflow can be built into an arbitrary read. I:H - The bytes written past the buffer are cp->in_seq/out_seq values that the attacker set through the forged sync opt in ip_vs_proc_conn(), plus tail pe_data. That is a controlled heap out-of-bounds write of up to 20-26 bytes into a neighbouring object, usable for control-flow hijack. A:H - Corrupting the adjacent slab object from softirq context under sync_buff_lock can oops or panic the kernel, and the attacker can repeat it at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < b8bf3f5d57deb99fd37a0f48e19c0a971c7d4558 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4fe760dc1423a055c47fdbbdd2b55c0c39d8be33 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < fd252d7fb19881c845b1b99905ae2bbb6d51b7ef (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 4f7c8b9de7e322a0c7802d3d7667794a318acdf3 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 87fcafc86e46c644297e59b709d3f712f4c02c03 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e95811f53987778f24428591d9cea8381e192d91 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < bb53343912435e7fa0bc9bbe4f7087690624420a (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3e3fe49e8678c1a3d535ed02f32a9a6e80674263 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/3e3fe49e8678c1a3d535ed02f32a9a6e80674263
- https://git.kernel.org/stable/c/4f7c8b9de7e322a0c7802d3d7667794a318acdf3
- https://git.kernel.org/stable/c/4fe760dc1423a055c47fdbbdd2b55c0c39d8be33
- https://git.kernel.org/stable/c/87fcafc86e46c644297e59b709d3f712f4c02c03
- https://git.kernel.org/stable/c/b8bf3f5d57deb99fd37a0f48e19c0a971c7d4558
- https://git.kernel.org/stable/c/bb53343912435e7fa0bc9bbe4f7087690624420a
- https://git.kernel.org/stable/c/e95811f53987778f24428591d9cea8381e192d91
- https://git.kernel.org/stable/c/fd252d7fb19881c845b1b99905ae2bbb6d51b7ef
Provider assertions
1Linux · cna
ipvs: fix buffer overflow when sending sync messages
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 971fe2973f28a9a14d32df7d0558012fd5a2e497cd9916f4ac3db5b13e783add
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record