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 4AD1C3F86E1 for ; Wed, 27 May 2026 12:26:14 +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=1779884775; cv=none; b=gbAbGLYHqAnVWiPDS9OPyDN8GvX+QuHELQwAv6ap2S4WM8QWG/16qRcq/3fefI734lyDWuFd+PjdRZ609px+zgqF0e5g/YhoagKaHDfx+PTDKxUgtCSk2ZuVV3IroJVKE+vPzZOFQyrG0nuJ/V3t+SRQ2x1xn9OG6OGGU72ozgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884775; c=relaxed/simple; bh=i02m7RSznjwze1PKYsHTyUGqVnY0trEys68L44uEJbg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SNw0O0i0umcPLwr+3qqHVDRWDNV36zELcKjFjDfoO6+Hp3BKAywv3zw90x31WxzEGC8EC2jIFn2bJi0lgkIyIPacy5kDz5KI2DK5p/xJm8nlpi1/CR1ioj47I2ytaVyVulkkLhy8JQRHsLP1+0FcKroApElZ+v9nKOoZJfnkyoo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lTINMtfr; 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="lTINMtfr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D3171F000E9; Wed, 27 May 2026 12:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884774; bh=Oef4jZ+6gX3LdD47oRSN2b4e11f3IE+EhjCxC0wj1Q0=; h=From:To:Cc:Subject:Date:Reply-To; b=lTINMtfra2FBRVzCg+iDH3PWBnFWH9tFdvoPcKP6ovgo+W7DmcAY+6D7Mt9zOelp7 rQIuwm1SSU2kwjxle/KxlHHhjGGgytbl7sr3/cnfeIRZ3IORvYdYv0cFoPYM4w054o z19X94NMb4Iekfnx/JQmiR8n4uHr2fd0pxq9C1Dw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45965: apparmor: fix invalid deref of rawdata when export_binary is unset Date: Wed, 27 May 2026 14:20:07 +0200 Message-ID: <2026052734-CVE-2026-45965-5414@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=5853; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Nu1cFyfirX3fjq09OcLXx7kUsq05HL3CbIGN4gnUsdU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD6XfLqvsTZha3ffw0XvFn4eSLk1TWW8/1Xu/6cPGS ZqB20NlO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiqq4MCzbZ8C3u17t5M+C3 V8G2qBz5Z6GZVxjmp6wKa7ZhW/TVg93J80CqssXZ28yPAA== 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: fix invalid deref of rawdata when export_binary is unset If the export_binary parameter is disabled on runtime, profiles that were loaded before that will still have their rawdata stored in apparmorfs, with a symbolic link to the rawdata on the policy directory. When one of those profiles are replaced, the rawdata is set to NULL, but when trying to resolve the symbolic links to rawdata for that profile, it will try to dereference profile->rawdata->name when profile->rawdata is now NULL causing an oops. Fix it by checking if rawdata is set. [ 168.653080] BUG: kernel NULL pointer dereference, address: 0000000000000088 [ 168.657420] #PF: supervisor read access in kernel mode [ 168.660619] #PF: error_code(0x0000) - not-present page [ 168.663613] PGD 0 P4D 0 [ 168.665450] Oops: Oops: 0000 [#1] SMP NOPTI [ 168.667836] CPU: 1 UID: 0 PID: 1729 Comm: ls Not tainted 6.19.0-rc7+ #3 PREEMPT(voluntary) [ 168.672308] Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 168.679327] RIP: 0010:rawdata_get_link_base.isra.0+0x23/0x330 [ 168.682768] Code: 90 90 90 90 90 90 90 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 18 48 89 55 d0 48 85 ff 0f 84 e3 01 00 00 <48> 83 3c 25 88 00 00 00 00 0f 84 d4 01 00 00 49 89 f6 49 89 cc e8 [ 168.689818] RSP: 0018:ffffcdcb8200fb80 EFLAGS: 00010282 [ 168.690871] RAX: ffffffffaee74ec0 RBX: 0000000000000000 RCX: ffffffffb0120158 [ 168.692251] RDX: ffffcdcb8200fbe0 RSI: ffff88c187c9fa80 RDI: ffff88c186c98a80 [ 168.693593] RBP: ffffcdcb8200fbc0 R08: 0000000000000000 R09: 0000000000000000 [ 168.694941] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88c186c98a80 [ 168.696289] R13: 00007fff005aaa20 R14: 0000000000000080 R15: ffff88c188f4fce0 [ 168.697637] FS: 0000790e81c58280(0000) GS:ffff88c20a957000(0000) knlGS:0000000000000000 [ 168.699227] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 168.700349] CR2: 0000000000000088 CR3: 000000012fd3e000 CR4: 0000000000350ef0 [ 168.701696] Call Trace: [ 168.702325] [ 168.702995] rawdata_get_link_data+0x1c/0x30 [ 168.704145] vfs_readlink+0xd4/0x160 [ 168.705152] do_readlinkat+0x114/0x180 [ 168.706214] __x64_sys_readlink+0x1e/0x30 [ 168.708653] x64_sys_call+0x1d77/0x26b0 [ 168.709525] do_syscall_64+0x81/0x500 [ 168.710348] ? do_statx+0x72/0xb0 [ 168.711109] ? putname+0x3e/0x80 [ 168.711845] ? __x64_sys_statx+0xb7/0x100 [ 168.712711] ? x64_sys_call+0x10fc/0x26b0 [ 168.713577] ? do_syscall_64+0xbf/0x500 [ 168.714412] ? do_user_addr_fault+0x1d2/0x8d0 [ 168.715404] ? irqentry_exit+0xb2/0x740 [ 168.716359] ? exc_page_fault+0x90/0x1b0 [ 168.717307] entry_SYSCALL_64_after_hwframe+0x76/0x7e The Linux kernel CVE team has assigned CVE-2026-45965 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 5.10.252 with commit e6b2fc7e34d4e7ca6b8598c33a3d45d59e455d8d Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 5.15.202 with commit 6d8c180c825cbc73eeffaa79591f8e142dacae70 Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 6.1.165 with commit 3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 6.6.128 with commit b25298e89a297c42eb4c4d6f081d60375b820abb Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 6.12.75 with commit 19f2e4055626a58842ddec3282ad4465a80c6625 Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 6.18.14 with commit 1d2b2b58fde9059a488bc25399e6c3d74e9b5548 Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 6.19.4 with commit 1432ab0774cba43e8111be39989ff226531a9bac Issue introduced in 4.17 with commit 1180b4c757aab5506f1be367000364dd5cf5cd02 and fixed in 7.0 with commit df9ac55abd18628bd8cff687ea043660532a3654 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-45965 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/apparmorfs.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/e6b2fc7e34d4e7ca6b8598c33a3d45d59e455d8d https://git.kernel.org/stable/c/6d8c180c825cbc73eeffaa79591f8e142dacae70 https://git.kernel.org/stable/c/3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa https://git.kernel.org/stable/c/b25298e89a297c42eb4c4d6f081d60375b820abb https://git.kernel.org/stable/c/19f2e4055626a58842ddec3282ad4465a80c6625 https://git.kernel.org/stable/c/1d2b2b58fde9059a488bc25399e6c3d74e9b5548 https://git.kernel.org/stable/c/1432ab0774cba43e8111be39989ff226531a9bac https://git.kernel.org/stable/c/df9ac55abd18628bd8cff687ea043660532a3654