Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B2003EDAC1 for ; Wed, 27 May 2026 12:23:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884600; cv=none; b=BYTOpmEGEzxO1oYmXU3H6STzKdFNwzrrP4G+xKjbqv75z8dUfxyBJhUf+ajrUGzHn8p5ht9DUpUPXOo2qM+NdBYw2e/q/n0rMcCRK0+CBlFJyChiDyVpxW/28akR5ND+V1zqYPatQjPKQOl/KbnlvjlZXmx2/Gh5boWWkXe+f+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884600; c=relaxed/simple; bh=lqRzDLrT0Mxd1s14aBNhrMq+dt7BkTj45uuM0D16nko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Kmu5FFoZK8Lq19eg7WMn29VAHwIz0AgG24Jh5SV5aogSexQs1mTfqb94kulbtubYJtwHZghqwZEsV0uprQ9+NmYH6eTlKxKBD1vxoWZqoPx9Rvb8MNQc40HIkGle59eFnMeNva0jsLN+z28r/JimOQn4OFf10c55H8zghlR7gQ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xnJugLX2; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xnJugLX2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 501E11F000E9; Wed, 27 May 2026 12:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884598; bh=6kVUjl/rsUdtzlwcPQX+9AOPP/9YEc7l/FC1djmFyds=; h=From:To:Cc:Subject:Date:Reply-To; b=xnJugLX2c5z8v/EQQeX86mv4dKRBoxiEpVx/3ggvW8EmGRXyflleLtTnJ5dVuCgDC k624kD88bmSnssbqElAN5rPzWAMPCZe6J/o0KJ5GzKWyuyQCYULY0TqHVhG8C65WU3 fI+aHfnFeMMiuRn3xGDs5KqrU7WdqRc2vSInyxUo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45884: apparmor: avoid per-cpu hold underflow in aa_get_buffer Date: Wed, 27 May 2026 14:18:46 +0200 Message-ID: <2026052716-CVE-2026-45884-441d@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2642; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lIWYsRZ9b4OEGoWixP2CI2s03UWxP8NbFFXir/I8Eqo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliDzm8MsQdvbQvt92w3ZI5Q85+l+l+0cI/luuu7PA5H vTjacmOjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI9kCGudIMty32Oe7w1kzm +zwjwSMtIaqmkGGuLPfOw38brrh0X1fec1L5v87agrX2AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: apparmor: avoid per-cpu hold underflow in aa_get_buffer When aa_get_buffer() pulls from the per-cpu list it unconditionally decrements cache->hold. If hold reaches 0 while count is still non-zero, the unsigned decrement wraps to UINT_MAX. This keeps hold non-zero for a very long time, so aa_put_buffer() never returns buffers to the global list, which can starve other CPUs and force repeated kmalloc(aa_g_path_max) allocations. Guard the decrement so hold never underflows. The Linux kernel CVE team has assigned CVE-2026-45884 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit ea9bae12d02819556db63348db8bd8441eb316f2 and fixed in 6.12.75 with commit 202824a1f89a9786c20a3d646a7c88d223abb1b2 Issue introduced in 6.7 with commit ea9bae12d02819556db63348db8bd8441eb316f2 and fixed in 6.18.14 with commit 80c334acc6d0bee8605a358a33e69b4aea1ffb92 Issue introduced in 6.7 with commit ea9bae12d02819556db63348db8bd8441eb316f2 and fixed in 6.19.4 with commit 4bcddd0f6b2e52b4c7b520e4d36a115caf5b7169 Issue introduced in 6.7 with commit ea9bae12d02819556db63348db8bd8441eb316f2 and fixed in 7.0 with commit 640cf2f09575c9dc344b3f7be2498d31e3923ead 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-45884 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/apparmor/lsm.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/202824a1f89a9786c20a3d646a7c88d223abb1b2 https://git.kernel.org/stable/c/80c334acc6d0bee8605a358a33e69b4aea1ffb92 https://git.kernel.org/stable/c/4bcddd0f6b2e52b4c7b520e4d36a115caf5b7169 https://git.kernel.org/stable/c/640cf2f09575c9dc344b3f7be2498d31e3923ead