CVE-2024-53216

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: nfsd: release svc_expkey/svc_export with rcu_work The last reference for `cache_head` can be reduced to zero in `c_show` and `e_show`(using `rcu_read_lock` and `rcu_read_unlock`). Consequently, `svc_export_put` and `expkey_put` will be invoked, leading to two issues: 1. The `svc_export_put` will directly free ex_uuid. However, `e_show`/`c_show` will access `ex_uuid` after `cache_put`, which can trigger a use-after-free issue, shown below. ================================================================== BUG: KASAN: slab-use-after-free in svc_export_show+0x362/0x430 [nfsd] Read of size 1 at addr ff11000010fdc120 by task cat/870 CPU: 1 UID: 0 PID: 870 Comm: cat Not tainted 6.12.0-rc3+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.1-2.fc37 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x53/0x70 print_address_description.constprop.0+0x2c/0x3a0 print_report+0xb9/0x280 kasan_report+0xae/0xe0 svc_export_show+0x362/0x430 [nfsd] c_show+0x161/0x390 [sunrpc] seq_read_iter+0x589/0x770 seq_read+0x1e5/0x270 proc_reg_read+0xe1/0x140 vfs_read+0x125/0x530 ksys_read+0xc1/0x160 do_syscall_64+0x5f/0x170 entry_SYSCALL_64_after_hwframe+0x76/0x7e Allocated by task 830: kasan_save_stack+0x20/0x40 kasan_save_track+0x14/0x30 __kasan_kmalloc+0x8f/0xa0 __kmalloc_node_track_caller_noprof+0x1bc/0x400 kmemdup_noprof+0x22/0x50 svc_export_parse+0x8a9/0xb80 [nfsd] cache_do_downcall+0x71/0xa0 [sunrpc] cache_write_procfs+0x8e/0xd0 [sunrpc] proc_reg_write+0xe1/0x140 vfs_write+0x1a5/0x6d0 ksys_write+0xc1/0x160 do_syscall_64+0x5f/0x170 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 868: kasan_save_stack+0x20/0x40 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x37/0x50 kfree+0xf3/0x3e0 svc_export_put+0x87/0xb0 [nfsd] cache_purge+0x17f/0x1f0 [sunrpc] nfsd_destroy_serv+0x226/0x2d0 [nfsd] nfsd_svc+0x125/0x1e0 [nfsd] write_threads+0x16a/0x2a0 [nfsd] nfsctl_transaction_write+0x74/0xa0 [nfsd] vfs_write+0x1a5/0x6d0 ksys_write+0xc1/0x160 do_syscall_64+0x5f/0x170 entry_SYSCALL_64_after_hwframe+0x76/0x7e 2. We cannot sleep while using `rcu_read_lock`/`rcu_read_unlock`. However, `svc_export_put`/`expkey_put` will call path_put, which subsequently triggers a sleeping operation due to the following `dput`. ============================= WARNING: suspicious RCU usage 5.10.0-dirty #141 Not tainted ----------------------------- ... Call Trace: dump_stack+0x9a/0xd0 ___might_sleep+0x231/0x240 dput+0x39/0x600 path_put+0x1b/0x30 svc_export_put+0x17/0x80 e_show+0x1c9/0x200 seq_read_iter+0x63f/0x7c0 seq_read+0x226/0x2d0 vfs_read+0x113/0x2c0 ksys_read+0xc9/0x170 do_syscall_64+0x33/0x40 entry_SYSCALL_64_after_hwframe+0x67/0xd1 Fix these issues by using `rcu_work` to help release `svc_expkey`/`svc_export`. This approach allows for an asynchronous context to invoke `path_put` and also facilitates the freeing of `uuid/exp/key` after an RCU grace period.

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-53216

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-53216.html

vendor Authored 2026-05-27

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

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 debianbookwormaffected
debian debianbullseyeaffected
debian debianforkyfixed6.12.3-1
debian debiansidfixed6.12.3-1
debian debiantrixiefixed6.12.3-1
almalinux almalinux9fixedkernel-doc-5.14.0-611.5.1.el9_7.noarch.rpm

References

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