CVE-2024-53680

medium
Published 2025-11-11 · Modified 2025-11-19
CVSS v3
CVSS v2
VIR risk
5.5

Description

In the Linux kernel, the following vulnerability has been resolved: ipvs: fix UB due to uninitialized stack access in ip_vs_protocol_init() Under certain kernel configurations when building with Clang/LLVM, the compiler does not generate a return or jump as the terminator instruction for ip_vs_protocol_init(), triggering the following objtool warning during build time: vmlinux.o: warning: objtool: ip_vs_protocol_init() falls through to next function __initstub__kmod_ip_vs_rr__935_123_ip_vs_rr_init6() At runtime, this either causes an oops when trying to load the ipvs module or a boot-time panic if ipvs is built-in. This same issue has been reported by the Intel kernel test robot previously. Digging deeper into both LLVM and the kernel code reveals this to be a undefined behavior problem. ip_vs_protocol_init() uses a on-stack buffer of 64 chars to store the registered protocol names and leaves it uninitialized after definition. The function calls strnlen() when concatenating protocol names into the buffer. With CONFIG_FORTIFY_SOURCE strnlen() performs an extra step to check whether the last byte of the input char buffer is a null character (commit 3009f891bb9f ("fortify: Allow strlen() and strnlen() to pass compile-time known lengths")). This, together with possibly other configurations, cause the following IR to be generated: define hidden i32 @ip_vs_protocol_init() local_unnamed_addr #5 section ".init.text" align 16 !kcfi_type !29 { %1 = alloca [64 x i8], align 16 ... 14: ; preds = %11 %15 = getelementptr inbounds i8, ptr %1, i64 63 %16 = load i8, ptr %15, align 1 %17 = tail call i1 @llvm.is.constant.i8(i8 %16) %18 = icmp eq i8 %16, 0 %19 = select i1 %17, i1 %18, i1 false br i1 %19, label %20, label %23 20: ; preds = %14 %21 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #23 ... 23: ; preds = %14, %11, %20 %24 = call i64 @strnlen(ptr noundef nonnull dereferenceable(1) %1, i64 noundef 64) #24 ... } The above code calculates the address of the last char in the buffer (value %15) and then loads from it (value %16). Because the buffer is never initialized, the LLVM GVN pass marks value %16 as undefined: %13 = getelementptr inbounds i8, ptr %1, i64 63 br i1 undef, label %14, label %17 This gives later passes (SCCP, in particular) more DCE opportunities by propagating the undef value further, and eventually removes everything after the load on the uninitialized stack location: define hidden i32 @ip_vs_protocol_init() local_unnamed_addr #0 section ".init.text" align 16 !kcfi_type !11 { %1 = alloca [64 x i8], align 16 ... 12: ; preds = %11 %13 = getelementptr inbounds i8, ptr %1, i64 63 unreachable } In this way, the generated native code will just fall through to the next function, as LLVM does not generate any code for the unreachable IR instruction and leaves the function without a terminator. Zero the on-stack buffer to avoid this possible UB.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: alma — https://errata.almalinux.org/9/ALSA-2025-20518.html

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2383441

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2376076

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2369184

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2363380

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2360215

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351633

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351629

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351625

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351624

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351620

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351618

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351616

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351613

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351612

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351608

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2351606

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350726

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350725

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350589

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350585

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350400

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350397

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350396

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350392

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350388

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350386

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350375

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350374

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350367

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2350363

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348901

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348654

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348650

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348645

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348634

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348625

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348620

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348615

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348601

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348600

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348597

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348595

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348587

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348585

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348584

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348581

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348578

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348577

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348574

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348573

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348566

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348556

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348554

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348550

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348547

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348543

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348541

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348528

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348523

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348515

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348279

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348240

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348238

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348071

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2348022

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347968

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347919

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347859

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347807

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347781

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347759

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347753

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2347707

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2346272

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2345240

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2344687

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2344684

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2343175

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2343172

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338832

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338828

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2338814

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2337124

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2337121

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2336541

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334829

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334795

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334676

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334560

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334548

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334547

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334537

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334439

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334415

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334396

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2334357

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2331326

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2330341

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2329918

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327887

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327374

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2327203

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2324549

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320722

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320616

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320455

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320259

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2320172

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2313092

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2312077

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2298169

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-53680

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2025:20518

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-53680.html

vendor Authored 2026-05-27

Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2025:20518

OS impact

OSVersionStatusFixed in
redhat rhel9fixed
suse slesaffected
rockylinux rocky9fixed
debian debianbookwormfixed6.1.123-1
debian debianbullseyefixed5.10.234-1
debian debianforkyfixed6.12.5-1
debian debiansidfixed6.12.5-1
debian debiantrixiefixed6.12.5-1
almalinux almalinux9fixedkernel-doc-5.14.0-611.5.1.el9_7.noarch.rpm

References

Verify integrity in audit chain (admin only). AS-IS.