CVE-2022-48809

MEDIUM

Linux Kernel < 4.9.302 - Memory Leak

Title source: rule

Description

In the Linux kernel, the following vulnerability has been resolved: net: fix a memleak when uncloning an skb dst and its metadata When uncloning an skb dst and its associated metadata, a new dst+metadata is allocated and later replaces the old one in the skb. This is helpful to have a non-shared dst+metadata attached to a specific skb. The issue is the uncloned dst+metadata is initialized with a refcount of 1, which is increased to 2 before attaching it to the skb. When tun_dst_unclone returns, the dst+metadata is only referenced from a single place (the skb) while its refcount is 2. Its refcount will never drop to 0 (when the skb is consumed), leading to a memory leak. Fix this by removing the call to dst_hold in tun_dst_unclone, as the dst+metadata refcount is already 1.

Scores

CVSS v3 5.5
EPSS 0.0003
EPSS Percentile 6.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE
CWE-401
Status published

Affected Products (8)

linux/linux_kernel < 4.9.302
linux/Kernel < 4.9.302linux
linux/Kernel < 4.14.267linux
linux/Kernel < 4.19.230linux
linux/Kernel < 5.4.180linux
linux/Kernel < 5.10.101linux
linux/Kernel < 5.15.24linux
linux/Kernel < 5.16.10linux

Timeline

Published Jul 16, 2024
Tracked Since Feb 18, 2026