udp: Fix memory accounting leak.
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f970bd9e3a06f06df8d8ecf1f8ad2c8615cc17eb · < a116b271bf3cb72c8155b6b7f39083c1b80dcd00| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
udp: Fix memory accounting leak.
Matt Dowling reported a weird UDP memory usage issue.
Under normal operation, the UDP memory usage reported in /proc/net/sockstat remains close to zero. However, it occasionally spiked to 524,288 pages and never dropped. Moreover, the value doubled when the application was terminated. Finally, it caused intermittent packet drops.
We can reproduce the issue with the script below [0]:
1. /proc/net/sockstat reports 0 pages
# cat /proc/net/sockstat | grep UDP: UDP: inuse 1 mem 0
2. Run the script till the report reaches 524,288
From the CVE record · Linux
The Linux kernel’s UDP memory accounting can overflow when an application sets SO_RCVBUF to INT_MAX and closes a socket with a large receive queue. This local condition can leave UDP memory usage incorrectly elevated and cause intermittent packet drops; no authentication or user interaction requirements are specified.
Engineers running the Linux kernel should check their systems; affected versions are not specified.