# CVE-2026-45965: apparmor: fix invalid deref of rawdata when export\_binary is unset

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-05-27T12:18:23.170Z
- **Modified:** 2026-06-17T10:52:48.670Z

## Who should check

- Anyone running Linux \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< e6b2fc7e34d4e7ca6b8598c33a3d45d59e455d8d; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 6d8c180c825cbc73eeffaa79591f8e142dacae70; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< b25298e89a297c42eb4c4d6f081d60375b820abb; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 19f2e4055626a58842ddec3282ad4465a80c6625; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 1d2b2b58fde9059a488bc25399e6c3d74e9b5548; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 1432ab0774cba43e8111be39989ff226531a9bac; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< df9ac55abd18628bd8cff687ea043660532a3654
- Anyone running Linux 4.17

## 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\]  \<TASK\>
\[  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

## Affected and fixed versions

- Linux: \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< e6b2fc7e34d4e7ca6b8598c33a3d45d59e455d8d; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 6d8c180c825cbc73eeffaa79591f8e142dacae70; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< b25298e89a297c42eb4c4d6f081d60375b820abb; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 19f2e4055626a58842ddec3282ad4465a80c6625; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 1d2b2b58fde9059a488bc25399e6c3d74e9b5548; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 1432ab0774cba43e8111be39989ff226531a9bac; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< df9ac55abd18628bd8cff687ea043660532a3654 (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45965. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45965.md
Affected: Linux >= 1180b4c757aab5506f1be367000364dd5cf5cd02, < e6b2fc7e34d4e7ca6b8598c33a3d45d59e455d8d; >= 1180b4c757aab5506f1be367000364dd5cf5cd02, < 6d8c180c825cbc73eeffaa79591f8e142dacae70; >= 1180b4c757aab5506f1be367000364dd5cf5cd02, < 3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa; >= 1180b4c757aab5506f1be36…
Fixed in: Linux 6d8c180c825cbc73eeffaa79591f8e142dacae70, Linux 3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa, Linux 19f2e4055626a58842ddec3282ad4465a80c6625, Linux 1d2b2b58fde9059a488bc25399e6c3d74e9b5548, Linux 1432ab0774cba43e8111be39989ff226531a9bac

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45965 being exploited?

There is no confirmed exploitation: CVE-2026-45965 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45965?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45965?

Linux \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< e6b2fc7e34d4e7ca6b8598c33a3d45d59e455d8d; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 6d8c180c825cbc73eeffaa79591f8e142dacae70; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< b25298e89a297c42eb4c4d6f081d60375b820abb; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 19f2e4055626a58842ddec3282ad4465a80c6625; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 1d2b2b58fde9059a488bc25399e6c3d74e9b5548; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< 1432ab0774cba43e8111be39989ff226531a9bac; \>= 1180b4c757aab5506f1be367000364dd5cf5cd02, \< df9ac55abd18628bd8cff687ea043660532a3654; Linux 4.17.

### Is there a fix for CVE-2026-45965?

Yes. Fixed in Linux 6d8c180c825cbc73eeffaa79591f8e142dacae70, Linux 3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa, Linux 19f2e4055626a58842ddec3282ad4465a80c6625, Linux 1d2b2b58fde9059a488bc25399e6c3d74e9b5548, Linux 1432ab0774cba43e8111be39989ff226531a9bac. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-45965?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e6b2fc7e34d4e7ca6b8598c33a3d45d59e455d8d>
- patch: <https://git.kernel.org/stable/c/6d8c180c825cbc73eeffaa79591f8e142dacae70>
- patch: <https://git.kernel.org/stable/c/3c36b87fc2a4cf88eadea8cf13923bd2b4f9a3fa>
- patch: <https://git.kernel.org/stable/c/b25298e89a297c42eb4c4d6f081d60375b820abb>
- patch: <https://git.kernel.org/stable/c/19f2e4055626a58842ddec3282ad4465a80c6625>
- patch: <https://git.kernel.org/stable/c/1d2b2b58fde9059a488bc25399e6c3d74e9b5548>
- patch: <https://git.kernel.org/stable/c/1432ab0774cba43e8111be39989ff226531a9bac>
- patch: <https://git.kernel.org/stable/c/df9ac55abd18628bd8cff687ea043660532a3654>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45965>

HTML: <https://flawdb.com/CVE-2026-45965> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45965>
