CVE-2026-31503·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: udp: Fix wildcard bind conflict check when using hash2 When binding a udp_sock to a local address and port, UDP uses two hashes (udptable->hash and udptable->hash2) for collision detection. The current code switches to "hash2" when hslot->count > 10. "hash2" is keyed by local address and local port. "hash" is keyed by local port only. The issue can be shown in the following bind sequence (pseudo code): bind(fd1, "[fd00::1]:8888") bind(fd2, "[fd00::2]:8888") bind(fd3, "[fd00::3]:8888") bind(fd4, "[fd00::4]:8888") bind(fd5, "[fd00::5]:8888") bind(fd6, "[fd00::6]:8888") bind(fd7, "[fd00::7]:8888") bind(fd8, "[fd00::8]:8888") bind(fd9, "[fd00::9]:8888") bind(fd10, "[fd00::10]:8888") /* Correctly return -EADDRINUSE because "hash" is used * instead of "hash2". udp_lib_lport_inuse() detects the * conflict. */ bind(fail_fd, "[::]:8888") /* After one more socket is bound to "[fd00::11]:8888", * hslot->count exceeds 10 and "hash2" is used instead. */ bind(fd11, "[fd00::11]:8888") bind(fail_fd, "[::]:8888") /* succeeds unexpectedly */ The same issue applies to the IPv4 wildcard address "0.0.0.0" and the IPv4-mapped wildcard address "::ffff:0.0.0.0". For example, if there are existing sockets bound to "192.168.1.[1-11]:8888", then binding "0.0.0.0:8888" or "[::ffff:0.0.0.0]:8888" can also miss the conflict when hslot->count > 10. TCP inet_csk_get_port() already has the correct check in inet_use_bhash2_on_bind(). Rename it to inet_use_hash2_on_bind() and move it to inet_hashtables.h so udp.c can reuse it in this fix.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.11
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.11
Fixed in: 6.19.11
How to fix this CVE
Update your Linux kernel to version 6.19.11 or later to resolve this UDP wildcard binding conflict vulnerability. The vulnerability allows multiple sockets to bind to conflicting addresses when hash collision detection switches between hash tables, bypassing address-in-use protections. Apply the kernel security update through your distribution's package manager and reboot your system to complete the remediation.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check the current kernel version: uname -r | grep -E '^6\.19\.[0-9]+' && echo 'Vulnerable range detected'
- Verify if UDP services are actively listening: ss -ulnp | grep LISTEN to identify UDP socket bindings
- Review kernel logs for unexpected UDP bind behavior: journalctl -k | grep -i 'udp\|bind' to check for binding anomalies around the time of the vulnerability window
- Confirm the patch is applied by checking if kernel version is 6.19.11 or higher: uname -r | awk -F. '{if($1==6 && $2==19 && $3>=11) print "Patched"; else print "Vulnerable or unknown"}'
FAQ
What is CVE-2026-31503?
CVE-2026-31503 is a kernel vulnerability in UDP's socket binding logic where wildcard address bindings fail to properly detect conflicts when the internal hash table switches strategies. This can allow unauthorized socket binds that should be rejected, potentially enabling port hijacking or denial-of-service scenarios.
Is CVE-2026-31503 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities (KEV) catalog, CVE-2026-31503 is not currently being actively exploited in the wild, and no public exploits are available.
What versions of Kernel are affected by CVE-2026-31503?
Linux kernel versions 6.19 through 6.19.10 are vulnerable. The vulnerability is fixed in kernel version 6.19.11 and later.
How do I check if my server is vulnerable to CVE-2026-31503?
Run `uname -r` to display your kernel version. If it shows 6.19.x where x is less than 11 (e.g., 6.19.0 through 6.19.10), your system is vulnerable and requires immediate kernel patching.
Does Defensia detect CVE-2026-31503?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31503 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0a360f7f73a06ac88f18917055fbcc79694252d7
- https://git.kernel.org/stable/c/18d84c45def3671d5c89fbdd5d4ab8a3217fe4b4
- https://git.kernel.org/stable/c/2297e38114316b26ae02f2d205c49b5511c5ed55
- https://git.kernel.org/stable/c/d6ace0dbcbb7fd285738bb87b42b71b01858c952
- https://git.kernel.org/stable/c/e537dd15d0d4ad989d56a1021290f0c674dd8b28
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31503. Free for 1 server.
Get started free