# CVE-2025-38033: x86/Kconfig: make CFI\_AUTO\_DEFAULT depend on !RUST or Rust \>= 1.88

> 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.27% (percentile 13, 2026-11-26)
- **Published:** 2025-06-18T09:33:20.195Z
- **Modified:** 2026-06-17T09:15:55.127Z

## Who should check

- Anyone running Linux \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 5a8d073d87da4ad1496b35adaee5719e94665d81; \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 6b9956d09382bcbd5fd260c4b60ec48680a4cffb; \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 5595c31c370957aabe739ac3996aedba8267603f
- Anyone running Linux 6.11

## Description

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

x86/Kconfig: make CFI\_AUTO\_DEFAULT depend on !RUST or Rust \>= 1.88

Calling core::fmt::write() from rust code while FineIBT is enabled
results in a kernel panic:

\[ 4614.199779\] kernel BUG at arch/x86/kernel/cet.c:132!
\[ 4614.205343\] Oops: invalid opcode: 0000 \[\#1\] PREEMPT SMP NOPTI
\[ 4614.211781\] CPU: 2 UID: 0 PID: 6057 Comm: dmabuf\_dump Tainted: G     U     O       6.12.17-android16-0-g6ab38c534a43 \#1 9da040f27673ec3945e23b998a0f8bd64c846599
\[ 4614.227832\] Tainted: \[U\]=USER, \[O\]=OOT\_MODULE
\[ 4614.241247\] RIP: 0010:do\_kernel\_cp\_fault+0xea/0xf0
...
\[ 4614.398144\] RIP: 0010:\_RNvXs5\_NtNtNtCs3o2tGsuHyou\_4core3fmt3num3impyNtB9\_7Display3fmt+0x0/0x20
\[ 4614.407792\] Code: 48 f7 df 48 0f 48 f9 48 89 f2 89 c6 5d e9 18 fd ff ff 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 41 81 ea 14 61 af 2c 74 03 0f 0b 90 \<66\> 0f 1f 00 55 48 89 e5 48 89 f2 48 8b 3f be 01 00 00 00 5d e9 e7
\[ 4614.428775\] RSP: 0018:ffffb95acfa4ba68 EFLAGS: 00010246
\[ 4614.434609\] RAX: 0000000000000000 RBX: 0000000000000010 RCX: 0000000000000000
\[ 4614.442587\] RDX: 0000000000000007 RSI: ffffb95acfa4ba70 RDI: ffffb95acfa4bc88
\[ 4614.450557\] RBP: ffffb95acfa4bae0 R08: ffff0a00ffffff05 R09: 0000000000000070
\[ 4614.458527\] R10: 0000000000000000 R11: ffffffffab67eaf0 R12: ffffb95acfa4bcc8
\[ 4614.466493\] R13: ffffffffac5d50f0 R14: 0000000000000000 R15: 0000000000000000
\[ 4614.474473\]  ? \_\_cfi\_\_RNvXs5\_NtNtNtCs3o2tGsuHyou\_4core3fmt3num3impyNtB9\_7Display3fmt+0x10/0x10
\[ 4614.484118\]  ? \_RNvNtCs3o2tGsuHyou\_4core3fmt5write+0x1d2/0x250

This happens because core::fmt::write() calls
core::fmt::rt::Argument::fmt(), which currently has CFI disabled:

library/core/src/fmt/rt.rs:
171     // FIXME: Transmuting formatter in new and indirectly branching to/calling
172     // it here is an explicit CFI violation.
173     \#\[allow(inline\_no\_sanitize)\]
174     \#\[no\_sanitize(cfi, kcfi)\]
175     \#\[inline\]
176     pub(super) unsafe fn fmt(&self, f: &mut Formatter\<'\_\>) -\> Result {

This causes a Control Protection exception, because FineIBT has sealed
off the original function's endbr64.

This makes rust currently incompatible with FineIBT. Add a Kconfig
dependency that prevents FineIBT from getting turned on by default
if rust is enabled.

\[ Rust 1.88.0 (scheduled for 2025-06-26) should have this fixed \[1\],
  and thus we relaxed the condition with Rust \>= 1.88.

  When \`objtool\` lands checking for this with e.g. \[2\], the plan is
  to ideally run that in upstream Rust's CI to prevent regressions
  early \[3\], since we do not control \`core\`'s source code.

  Alice tested the Rust PR backported to an older compiler.

  Peter would like that Rust provides a stable \`core\` which can be
  pulled into the kernel: "Relying on that much out of tree code is
  'unfortunate'".

    - Miguel \]

\[ Reduced splat. - Miguel \]

## Affected and fixed versions

- Linux: \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 5a8d073d87da4ad1496b35adaee5719e94665d81; \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 6b9956d09382bcbd5fd260c4b60ec48680a4cffb; \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 5595c31c370957aabe739ac3996aedba8267603f (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 5595c31c370957aabe739ac3996aedba8267603f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38033.md
Affected: Linux >= d6f635bcaca8d38dfa47ee20658705f9eff156b5, < 5a8d073d87da4ad1496b35adaee5719e94665d81; >= d6f635bcaca8d38dfa47ee20658705f9eff156b5, < 6b9956d09382bcbd5fd260c4b60ec48680a4cffb; >= d6f635bcaca8d38dfa47ee20658705f9eff156b5, < 5595c31c370957aabe739ac3996aedba8267603f; Linux 6.11
Fixed in: Linux 5a8d073d87da4ad1496b35adaee5719e94665d81, Linux 6b9956d09382bcbd5fd260c4b60ec48680a4cffb, Linux 5595c31c370957aabe739ac3996aedba8267603f

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-2025-38033 being exploited?

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

### How serious is CVE-2025-38033?

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

### Which versions are affected by CVE-2025-38033?

Linux \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 5a8d073d87da4ad1496b35adaee5719e94665d81; \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 6b9956d09382bcbd5fd260c4b60ec48680a4cffb; \>= d6f635bcaca8d38dfa47ee20658705f9eff156b5, \< 5595c31c370957aabe739ac3996aedba8267603f; Linux 6.11.

### Is there a fix for CVE-2025-38033?

Yes. Fixed in Linux 5a8d073d87da4ad1496b35adaee5719e94665d81, Linux 6b9956d09382bcbd5fd260c4b60ec48680a4cffb, Linux 5595c31c370957aabe739ac3996aedba8267603f. Upgrade Linux to 5595c31c370957aabe739ac3996aedba8267603f or later.

### How do I check if I'm affected by CVE-2025-38033?

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/5a8d073d87da4ad1496b35adaee5719e94665d81>
- patch: <https://git.kernel.org/stable/c/6b9956d09382bcbd5fd260c4b60ec48680a4cffb>
- patch: <https://git.kernel.org/stable/c/5595c31c370957aabe739ac3996aedba8267603f>

## 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-2025-38033>

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