[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025122455-CVE-2025-68355-adf4@gregkh>
Date: Wed, 24 Dec 2025 11:35:00 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-68355: bpf: Fix exclusive map memory leak
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix exclusive map memory leak
When excl_prog_hash is 0 and excl_prog_hash_size is non-zero, the map also
needs to be freed. Otherwise, the map memory will not be reclaimed, just
like the memory leak problem reported by syzbot [1].
syzbot reported:
BUG: memory leak
backtrace (crc 7b9fb9b4):
map_create+0x322/0x11e0 kernel/bpf/syscall.c:1512
__sys_bpf+0x3556/0x3610 kernel/bpf/syscall.c:6131
The Linux kernel CVE team has assigned CVE-2025-68355 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit baefdbdf6812e120c9fba9cfb101d3656f478026 and fixed in 6.18.2 with commit f0022551745d72fc0e7bc8601234d690dee2178d
Issue introduced in 6.18 with commit baefdbdf6812e120c9fba9cfb101d3656f478026 and fixed in 6.19-rc1 with commit 688b745401ab16e2e1a3b504863f0a45fd345638
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-68355
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/bpf/syscall.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/f0022551745d72fc0e7bc8601234d690dee2178d
https://git.kernel.org/stable/c/688b745401ab16e2e1a3b504863f0a45fd345638
Powered by blists - more mailing lists