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

ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table()

ipv4_sysctl_exit_net() is currently freeing net->ipv4.sysctl_local_reserved_ports
too soon.

Only after unregister_net_sysctl_table() we can be sure no threads can possibly
use the sysctls, including /proc/sys/net/ipv4/ip_local_reserved_ports.
Published: 2026-07-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw arises because the Linux kernel frees the net->ipv4.sysctl_local_reserved_ports structure before all threads that may use it have stopped, leading to a use‑after‑free vulnerability (CWE‑825). This can cause the kernel to dereference invalid memory, resulting in a crash, data corruption, or a reboot that disrupts all services on the affected host.

Affected Systems

All Linux kernel builds that do not include the fixed commit are impacted. The issue is present in the kernel source tree before the patch that removes the premature free, so every kernel older than the released fix is vulnerable.

Risk and Exploitability

The CVSS score of 7.8 reflects a high severity impact. The EPSS score is <1%, suggesting that exploitation is unlikely at present, and it is not yet listed in the CISA KEV catalog. Based on the description, the vulnerability is triggered during network namespace exit or system shutdown, where the kernel still processes sysctl accesses such as /proc/sys/net/ipv4/ip_local_reserved_ports. An attacker who can induce a namespace teardown while a privileged process is writing to that sysctl may be able to provoke a kernel crash and cause a denial of service. The exact remote attack vector is not provided, so the risk is inferred from the crash‑prone use‑after‑free condition.

Generated by OpenCVE AI on August 4, 2026 at 18:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that incorporates the referenced patch.
  • Reboot the system after the kernel upgrade to ensure all old sysctl data structures are discarded before the new kernel begins normal operation.
  • Restrict write access to /proc/sys/net/ipv4/ip_local_reserved_ports during kernel shutdown procedures and isolate processes that may trigger network namespace teardown from untrusted or compromised code.

Generated by OpenCVE AI on August 4, 2026 at 18:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-459
CWE-590

Wed, 22 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 21 Jul 2026 23:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-459
CWE-590

Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sun, 19 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table() ipv4_sysctl_exit_net() is currently freeing net->ipv4.sysctl_local_reserved_ports too soon. Only after unregister_net_sysctl_table() we can be sure no threads can possibly use the sysctls, including /proc/sys/net/ipv4/ip_local_reserved_ports.
Title ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:38:02.672Z

Reserved: 2026-07-19T07:54:57.026Z

Link: CVE-2026-64002

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64002 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T18:15:03Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference