Skip to contentSkip to conversation

CVE-2026-98777: binder: fix leaked fd fixups on TF_UPDATE_TXN supersede

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

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

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

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

binder: fix leaked fd fixups on TF_UPDATE_TXN supersede

When a TF_UPDATE_TXN transaction supersedes a pending async transaction in a frozen process, the outdated transaction is freed with kfree() directly. This skips binder_free_txn_fixups(), leaking all binder_txn_fd_fixup entries and their fget()'d struct file references.

The leaked file refcounts never reach zero, so the struct file objects are permanently pinned in memory. They survive process exit and accumulate across invocations until file-max exhaustion.

Every other transaction cleanup path (binder_free_transaction(), binder_transaction() error paths, binder_release_work()) correctly calls binder_free_txn_fixups(). Add the missing call before kfree() in the t_outdated cleanup block.

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

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

	Issue introduced in 6.0 with commit 9864bb4801331daa48514face9d0f4861e4d485b and fixed in 6.12.113 with commit 7fd609fb0e9dcbc4d7a1e4da1af5368c0555ff55
	Issue introduced in 6.0 with commit 9864bb4801331daa48514face9d0f4861e4d485b and fixed in 6.18.56 with commit 1299cb3fb061598496086fc87ff291057831148e
	Issue introduced in 6.0 with commit 9864bb4801331daa48514face9d0f4861e4d485b and fixed in 7.2.10 with commit 6673f4f21e2fddfed0abe1eb9045cc958e6db130
	Issue introduced in 6.0 with commit 9864bb4801331daa48514face9d0f4861e4d485b and fixed in 7.3-rc6 with commit c4c02084d6687d5cd5edccaf52cc45e5160f1184

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-98777

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:
drivers/android/binder.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/7fd609fb0e9dcbc4d7a1e4da1af5368c0555ff55
	https://git.kernel.org/stable/c/1299cb3fb061598496086fc87ff291057831148e
	https://git.kernel.org/stable/c/6673f4f21e2fddfed0abe1eb9045cc958e6db130
	https://git.kernel.org/stable/c/c4c02084d6687d5cd5edccaf52cc45e5160f1184