Skip to contentSkip to conversation

CVE-2026-98413: selinux: always fill AVC decision in avc_has_perm_noaudit()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 14

lore
Share & tools
lore
#0 lore raw

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

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

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

selinux: always fill AVC decision in avc_has_perm_noaudit()

avc_has_perm_noaudit() is documented to return a copy of the access decision in @avd, but its early return for an empty requested permission set leaves the buffer untouched. All callers pass an uninitialized stack variable and afterwards feed it to avc_audit(), and the inode hook even stores it in the per-task decision cache.

Fill in a deny-all, audit-all decision, similar to avd_init(), so every caller receives a defined value at no cost on the hot path.

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

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

	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 5.10.271 with commit c781e737aa0de95289b1774d5fd29388895737a9
	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 5.15.222 with commit e308c5acfe283a66627fc407065626df4ab753ec
	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 6.1.189 with commit f9da796fa238f8e4414ee8481e6c979759a3d563
	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 6.6.158 with commit e77461af13eab5c9a953cc52ec8432cc941d61e2
	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 6.12.112 with commit 5a6f9a872b4ff68877caf998bee352153b7154bc
	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 6.18.54 with commit 24e00850bcff46b984f4c44b92e5499450fcfb5a
	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 7.2.8 with commit 835133337c2ce200db56f62d018c79087dee2603
	Issue introduced in 5.1 with commit e6f2f381e4015386a656a369835f949c26000e6b and fixed in 7.3-rc4 with commit 8861db305103107199b1426f25fde1fb6d465583

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

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:
security/selinux/avc.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/c781e737aa0de95289b1774d5fd29388895737a9
	https://git.kernel.org/stable/c/e308c5acfe283a66627fc407065626df4ab753ec
	https://git.kernel.org/stable/c/f9da796fa238f8e4414ee8481e6c979759a3d563
	https://git.kernel.org/stable/c/e77461af13eab5c9a953cc52ec8432cc941d61e2
	https://git.kernel.org/stable/c/5a6f9a872b4ff68877caf998bee352153b7154bc
	https://git.kernel.org/stable/c/24e00850bcff46b984f4c44b92e5499450fcfb5a
	https://git.kernel.org/stable/c/835133337c2ce200db56f62d018c79087dee2603
	https://git.kernel.org/stable/c/8861db305103107199b1426f25fde1fb6d465583