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

rust: arm64: set uwtable llvm module flag for CONFIG_UNWIND_TABLES

Due to a rustc bug [1] the -Cforce-unwind-tables=y flag only emits the
uwtable annotation for functions, but not for the module. This means
that compiler-generated functions such as 'asan.module_ctor' do not
receive the uwtable annotation.

When CONFIG_UNWIND_PATCH_PAC_INTO_SCS is enabled, this leads to boot
failures because the dwarf information emitted for the kasan
constructors is wrong, which causes the SCS boot patching code to
patch the constructor in an illegal manner. Specifically, the paciasp
instruction is patched, but the autiasp instruction is not. This
mismatch leads to a crash when the constructor is called during boot.

==================================================================
BUG: KASAN: global-out-of-bounds in do_basic_setup+0x4c/0x90
Read of size 8 at addr ffffffe3cc7eb488 by task swapper/0/1

Specifically the faulting instruction is the (*fn)() to invoke the
constructor in do_ctors() of the init/main.c file.

Once the fix lands in rustc, this flag can be made conditional on the
rustc version. Note that passing the flag on a rustc with the fix
present has no effect.

[ The fix [1] has landed for Rust 1.98.0 (expected release on
2026-08-20).

Thus add a version check as discussed.

- Miguel ]

[ Adjusted link and comment. - Miguel ]
Published: 2026-07-01
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, a rustc compiler bug causes the -Cforce-unwind-tables flag to annotate individual functions but not the entire module. The resulting module constructor lacks the required uwtable annotation. When the CONFIG_UNWIND_PATCH_PAC_INTO_SCS option is enabled on arm64, the kernel’s bootstrap code attempts to patch the constructor with PA‑C instructions based on incorrect DWARF data. This mismatch causes the constructor to be patched improperly, leading to a crash when it is invoked during boot and producing a kernel panic. The fault manifests as a local availability issue that prevents the system from starting.

Affected Systems

The flaw affects Linux kernel builds that compile modules with Rust on the arm64 architecture when the -Cforce-unwind-tables flag is active and the CONFIG_UNWIND_PATCH_PAC_INTO_SCS configuration option is enabled. No specific kernel release is cited; any build that satisfies these conditions is vulnerable. The problem originates from the compiler, not from a particular kernel version or module.

Risk and Exploitability

There is no CVSS score or EPSS value, and the vulnerability is not listed in the CISA KEV catalog. The risk is tied to the build environment: a corrupted or maliciously crafted Rust module compiled with the buggy flag could cause a boot‑time crash. An attacker would need to influence the kernel build process or supply a compromised kernel module; an existing running system is not directly exploitable. The impact is high for affected builds because a reboot or recovery is required to restore service, but the attack surface is local to the build pipeline.

Generated by OpenCVE AI on July 1, 2026 at 23:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to rustc 1.98.0 or later before compiling kernel modules; the upstream fix properly emits the uwtable annotation.
  • Avoid using the -Cforce-unwind-tables flag with older rustc versions, or enable it only when the compiler is known to have the bug fixed.
  • If upgrading rustc is not immediately possible, disable the CONFIG_UNWIND_PATCH_PAC_INTO_SCS configuration option for arm64 kernel builds that rely on Rust‑generated modules.

Generated by OpenCVE AI on July 1, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Wed, 01 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Wed, 01 Jul 2026 13:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: rust: arm64: set uwtable llvm module flag for CONFIG_UNWIND_TABLES Due to a rustc bug [1] the -Cforce-unwind-tables=y flag only emits the uwtable annotation for functions, but not for the module. This means that compiler-generated functions such as 'asan.module_ctor' do not receive the uwtable annotation. When CONFIG_UNWIND_PATCH_PAC_INTO_SCS is enabled, this leads to boot failures because the dwarf information emitted for the kasan constructors is wrong, which causes the SCS boot patching code to patch the constructor in an illegal manner. Specifically, the paciasp instruction is patched, but the autiasp instruction is not. This mismatch leads to a crash when the constructor is called during boot. ================================================================== BUG: KASAN: global-out-of-bounds in do_basic_setup+0x4c/0x90 Read of size 8 at addr ffffffe3cc7eb488 by task swapper/0/1 Specifically the faulting instruction is the (*fn)() to invoke the constructor in do_ctors() of the init/main.c file. Once the fix lands in rustc, this flag can be made conditional on the rustc version. Note that passing the flag on a rustc with the fix present has no effect. [ The fix [1] has landed for Rust 1.98.0 (expected release on 2026-08-20). Thus add a version check as discussed. - Miguel ] [ Adjusted link and comment. - Miguel ]
Title rust: arm64: set uwtable llvm module flag for CONFIG_UNWIND_TABLES
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-01T13:32:25.668Z

Reserved: 2026-06-09T07:44:35.399Z

Link: CVE-2026-53346

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T23:30:17Z

Weaknesses

No weakness.