Skip to contentSkip to conversation

CVE-2026-90392: bpf: Fix potential UAF when reading bpf link info

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

bpf: Fix potential UAF when reading bpf link info

In bpf_link_show_fdinfo and bpf_link_get_info_by_fd, link->prog is accessed without holding any locks. If the prog is concurrently replaced via bpf_link_update, the old prog can be freed, leading to a potential UAF issue.

Fix this by accessing link->prog under RCU protection to safely fetch the pointer and guarantee its lifetime while reading its fields.

The Linux kernel CVE team has assigned CVE-2026-90392 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.7 with commit 0c991ebc8c69d29b7fc44db17075c5aa5253e2ab and fixed in 6.6.157 with commit a5c936ac904767fc1d943d40b0308bcb2ae2509b
	Issue introduced in 5.7 with commit 0c991ebc8c69d29b7fc44db17075c5aa5253e2ab and fixed in 6.12.110 with commit d7d7208e2603b45724b684f4df73904fb347741e
	Issue introduced in 5.7 with commit 0c991ebc8c69d29b7fc44db17075c5aa5253e2ab and fixed in 6.18.52 with commit 85cf991c881e7198be32be05a9daa2625390c8b3
	Issue introduced in 5.7 with commit 0c991ebc8c69d29b7fc44db17075c5aa5253e2ab and fixed in 7.2.6 with commit 79347e42cfbc9e78872922e8f08a70609c9af82f
	Issue introduced in 5.7 with commit 0c991ebc8c69d29b7fc44db17075c5aa5253e2ab and fixed in 7.3-rc1 with commit 863f3ddd0b8ac65abfb50d3be0869268ac0e277b

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-2026-90392

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/a5c936ac904767fc1d943d40b0308bcb2ae2509b
	https://git.kernel.org/stable/c/d7d7208e2603b45724b684f4df73904fb347741e
	https://git.kernel.org/stable/c/85cf991c881e7198be32be05a9daa2625390c8b3
	https://git.kernel.org/stable/c/79347e42cfbc9e78872922e8f08a70609c9af82f
	https://git.kernel.org/stable/c/863f3ddd0b8ac65abfb50d3be0869268ac0e277b