Updated 13 Nov 2026: Rust 1.99.1 (15 Oct) fixes a separate x86_64 FFI bool return-value miscompilation in rustc 1.99.0; update rebuild guidance and distinguish from 1.98.0 vtable defect.

Key details

  1. Rust 1.98.1 was released September 3, 2026.
  2. It fixes a miscompilation present in Rust 1.98.0.
  3. The defect affects trait-object vtable generation in some circumstances.
  4. rustc could emit a null pointer where a function pointer should be.
  5. The resulting binary has undefined behavior and can segfault; the Rust team notes arbitrary effects are possible under UB.
  6. Users on the stable toolchain can update with `rustup update stable`.
  7. Previously compiled artifacts need to be rebuilt to remove code emitted by the affected compiler.
  8. Rust 1.99.1 was released October 15, 2026 and fixes a separate x86_64 FFI bool return-value miscompilation in 1.99.0.
  9. Upstream issue rust-lang/rust#163911 demonstrates a C caller observing 16 rather than a canonical boolean return value.
  10. The 1.99.1 issue is tagged critical and miscompilation; no CVE or in-the-wild exploit was established.

What builders should take away

  1. Update stable Rust toolchains from 1.98.0 to 1.98.1 rather than waiting for the next scheduled release.
  2. Rebuild release artifacts that were compiled with 1.98.0; changing the toolchain does not repair an existing binary.
  3. If you pin Rust versions in CI, containers or `rust-toolchain` files, check those pins explicitly instead of assuming `rustup update stable` covers every build environment.
  4. Invalidate relevant compiler/build caches where necessary so a rebuild does not reuse affected outputs.
  5. Treat unexpected trait-object crashes in freshly built 1.98.0 code as potentially compiler-related while validating against 1.98.1.
  6. If you built FFI-facing binaries with rustc 1.99.0 on x86_64, update to 1.99.1 or later and rebuild; a toolchain update does not retroactively fix shipped binaries.
  7. Review Rust/C interop tests for bool-return ABI correctness where native callers consume Rust-exported functions.

What changed

Rust 1.98.1 was released on September 3 to correct a miscompilation introduced in Rust 1.98.0. In some circumstances, rustc generated a trait-object vtable containing a null pointer where a function pointer should have been emitted. The resulting compiled code has undefined behavior: the Rust team says this can present as a null-pointer segfault, but arbitrary effects are possible because the program has already crossed into undefined behavior. The recommended remediation for stable users is to update to 1.98.1 and rebuild relevant code. On October 15, Rust 1.99.1 fixed a separate compiler correctness regression introduced in Rust 1.99.0: on x86_64, a Rust `extern "C"` function returning `bool` could omit the mask that constrains the return value to 0 or 1. The upstream reproducer passed 0x10 and observed the C caller print 16 instead of the expected boolean value. Rust issue #163911 is classified as a critical compiler miscompilation. This is not the same vtable defect as 1.98.0; it requires its own toolchain update and rebuild of binaries built with 1.99.0.

Why it matters

Compiler miscompilations are different from ordinary library bugs because the defect can be baked into binaries even when application source code is correct. A team can fix its toolchain and still keep deploying an artifact compiled with the bad version unless it rebuilds. Rust’s safety guarantees also do not protect against incorrect machine code emitted by the compiler itself, so builders that moved quickly to 1.98.0 should treat the point release as a toolchain-correctness update rather than waiting for the next normal release. The later FFI bug shows the same operational pattern in a different compiler path: a correctly written Rust/C interface can yield incorrect machine code on affected x86_64 builds. This is especially relevant to projects exporting Rust functions into C/C++ or other native consumers, but no evidence here establishes exploitation in the wild.

The bug is in emitted vtable code

Rust 1.98.0 could incorrectly place a null pointer in a trait-object vtable slot that should contain a callable function pointer. If execution reaches that slot, the binary has undefined behavior; a crash is one possible outcome but not the only one.

Updating the compiler is only half the remediation

Installing Rust 1.98.1 prevents new builds from using the affected compiler behavior, but binaries already produced by 1.98.0 do not change automatically. Teams should identify and rebuild artifacts compiled during the affected window, especially long-lived services, release binaries and cached build outputs.

The release is intentionally narrow

The Rust team published 1.98.1 as a point release focused on this miscompilation rather than bundling a larger feature set. That makes the operational decision simpler: stable users can update without waiting for a normal release cadence just to receive the compiler fix.

October 15 follow-up: Rust 1.99.1 fixes a different FFI bool bug

Rust's official 1.99.1 release notes list a fix for miscompiled `bool` return values at x86_64 FFI boundaries. The public issue includes a small C/Rust reproducer: an `extern "C"` Rust function intended to return false can emit the original `0x10` argument without masking, so a C caller prints 16 rather than 0 or 1. The issue is marked `I-miscompile`, `P-critical` and fixed. This is distinct from the 1.98.0 trait-object vtable defect.

What to watch next

  • A more precise public description of the circumstances that trigger the miscompilation.
  • Whether downstream distributions or build systems identify packages that need rebuilding.
  • Any additional compiler-correctness fixes discovered during the 1.98.x cycle.
  • Regression reports from projects that rebuild with 1.98.1.
  • Downstream rebuild advisories for projects built with 1.99.0 that expose bool-returning FFI functions.

Still unclear

  • The release announcement does not quantify how commonly real-world code triggers the affected vtable-generation path.
  • Undefined behavior allows outcomes beyond the simple null-pointer crash, so impact depends on the compiled program and execution path.
  • The announcement describes a compiler correctness defect; it does not assign a CVE or characterize it as remotely exploitable.
  • The upstream reproducer establishes incorrect return values on x86_64; real-world affected deployment count and exploitability are unquantified.

Sources

Direct reading behind this dossier.

5 sources
Announcing Rust 1.98.1
Rust Project primary

Primary release announcement describing the vtable miscompilation, undefined behavior and update path.

1.98.1 pre-release testing
Inside Rust primary

Primary prerelease notice confirming the expedited 1.98.1 release process.

Discussion

Discussion is reader-contributed. Comments are not part of the BTN dossier or its editorial evidence.

0 visible comments

Join the discussion

Keep comments useful and relevant. Reader contributions may be moderated and are not BTN editorial evidence.

Sign in to comment