1. CVE archive
  2. 2022
  3. CVE-2022-1012

CVE-2022-1012

8.2 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H 8.2 – High

Description

A memory leak problem was found in the TCP source port generation algorithm in net/ipv4/tcp.c due to the small table perturb size. This flaw may allow an attacker to information leak and may cause a denial of service problem.

Affected products

VendorProductVersionPlatform
linux linux kernel < 5.18 –
linux linux kernel 5.18 –
linux linux kernel 5.18 rc1 –
linux linux kernel 5.18 rc2 –
linux linux kernel 5.18 rc3 –
linux linux kernel 5.18 rc4 –
linux linux kernel 5.18 rc5 –
All 24,148 Linux Kernel vulnerabilities

Vulnerability type

CWE-401 Missing Release of Memory after Effective Lifetime

The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.

Impact on systems

ScopeImpact
Availability DoS: Crash, Exit, or Restart, DoS: Instability, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
Most memory leaks result in general product reliability problems, but if an attacker can intentionally trigger a memory leak, the attacker might be able to launch a denial of service attack (by crashing or hanging the program) or take advantage of other unexpected program behavior resulting from a low memory condition.
Other Reduce Performance

How to prevent it

Implementation · Libraries or Frameworks Choose a language or tool that provides automatic memory management, or makes manual memory management less error-prone. For example, glibc in Linux provides protection against free of invalid pointers. When using Xcode to target OS X or iOS, enable automatic reference counting (ARC). To help correctly and consistently manage memory when programming in C++, consider using a smart pointer class such as std
Architecture and Design Use an abstraction library to abstract away risky APIs. Not a complete solution.
Architecture and Design · Build and Compilation Consider using the Boehm-Demers-Weiser garbage collector (bdwgc), which can help avoid leaks.

All 2,073 CWE-401 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org