Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-50121— nfsd: cancel nfsd_shrinker_work using sync mode in nfs4_state_shutdown_net

AI Predicted 4.4 Difficulty: Moderate EPSS 0.24% · P15

Possible ATT&CK Techniques 1AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 17

VendorProductVersion RangeStatus
LinuxLinux2bbf10861d51dae76c6da7113516d0071c782653< f67138dd338cb564ade7d3755c8cd4f68b46d397affected
958294a3eb82026fcfff20b0287a90e9c854785e< 5ade4382de16c34d9259cb548f36ec5c4555913caffected
f3ea5ec83d1a827f074b2b660749817e0bf2b23e< 36775f42e039b01d4abe8998bf66771a37d3cdccaffected
7c24fa225081f31bc6da6a355c1ba801889ab29a< f965dc0f099a54fca100acf6909abe52d0c85328affected
7c24fa225081f31bc6da6a355c1ba801889ab29a< add1df5eba163a3a6ece11cb85890e2e410baaeaaffected
7c24fa225081f31bc6da6a355c1ba801889ab29a< d5ff2fb2e7167e9483846e34148e60c0c016a1f6affected
5.10.220< 5.10.233affected
5.15.154< 5.15.176affected
… +9 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-50121

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
nfsd: cancel nfsd_shrinker_work using sync mode in nfs4_state_shutdown_net
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: nfsd: cancel nfsd_shrinker_work using sync mode in nfs4_state_shutdown_net In the normal case, when we excute `echo 0 > /proc/fs/nfsd/threads`, the function `nfs4_state_destroy_net` in `nfs4_state_shutdown_net` will release all resources related to the hashed `nfs4_client`. If the `nfsd_client_shrinker` is running concurrently, the `expire_client` function will first unhash this client and then destroy it. This can lead to the following warning. Additionally, numerous use-after-free errors may occur as well. nfsd_client_shrinker echo 0 > /proc/fs/nfsd/threads expire_client nfsd_shutdown_net unhash_client ... nfs4_state_shutdown_net /* won't wait shrinker exit */ /* cancel_work(&nn->nfsd_shrinker_work) * nfsd_file for this /* won't destroy unhashed client1 */ * client1 still alive nfs4_state_destroy_net */ nfsd_file_cache_shutdown /* trigger warning */ kmem_cache_destroy(nfsd_file_slab) kmem_cache_destroy(nfsd_file_mark_slab) /* release nfsd_file and mark */ __destroy_client ==================================================================== BUG nfsd_file (Not tainted): Objects remaining in nfsd_file on __kmem_cache_shutdown() -------------------------------------------------------------------- CPU: 4 UID: 0 PID: 764 Comm: sh Not tainted 6.12.0-rc3+ #1 dump_stack_lvl+0x53/0x70 slab_err+0xb0/0xf0 __kmem_cache_shutdown+0x15c/0x310 kmem_cache_destroy+0x66/0x160 nfsd_file_cache_shutdown+0xac/0x210 [nfsd] nfsd_destroy_serv+0x251/0x2a0 [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 ==================================================================== BUG nfsd_file_mark (Tainted: G B W ): Objects remaining nfsd_file_mark on __kmem_cache_shutdown() -------------------------------------------------------------------- dump_stack_lvl+0x53/0x70 slab_err+0xb0/0xf0 __kmem_cache_shutdown+0x15c/0x310 kmem_cache_destroy+0x66/0x160 nfsd_file_cache_shutdown+0xc8/0x210 [nfsd] nfsd_destroy_serv+0x251/0x2a0 [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 To resolve this issue, cancel `nfsd_shrinker_work` using synchronous mode in nfs4_state_shutdown_net.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于nfsd模块中,取消nfsd_shrinker_work时未使用同步模式,可能导致资源释放不当。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 2bbf10861d51dae76c6da7113516d0071c782653 ~ f67138dd338cb564ade7d3755c8cd4f68b46d397 -
LinuxLinux 6.2 -

II. Public POCs for CVE-2024-50121

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-50121

登录查看更多情报信息。

Patches & Fixes for CVE-2024-50121 (6)

Same Patch Batch · Linux · 2024-11-05 · 50 CVEs total

CVE-2024-501069.8 CRITICALnfsd: fix race between laundromat and free_stateid
CVE-2024-501138.8 HIGHfirewire: core: fix invalid port index for parent device
CVE-2024-501158.4 HIGHKVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
CVE-2024-501258.0 HIGHBluetooth: SCO: Fix UAF on sco_sock_timeout
CVE-2024-501248.0 HIGHBluetooth: ISO: Fix UAF on iso_sock_timeout
CVE-2024-501327.8 HIGHtracing/probes: Fix MAX_TRACE_ARGS limit handling
CVE-2023-529207.8 HIGHbpf: support non-r10 register spill/fill to/from stack in precision tracking
CVE-2024-500917.8 HIGHdm vdo: don't refer to dedupe_context after releasing it
CVE-2024-501017.8 HIGHiommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI devices
CVE-2024-501147.8 HIGHKVM: arm64: Unregister redistributor for failed vCPU creation
CVE-2024-501277.8 HIGHnet: sched: fix use-after-free in taprio_change()
CVE-2024-501267.8 HIGHnet: sched: use RCU read-side critical section in taprio_dump()
CVE-2024-501287.8 HIGHnet: wwan: fix global oob in wwan_rtnl_policy
CVE-2024-501307.8 HIGHnetfilter: bpf: must hold reference on net namespace
CVE-2024-500907.8 HIGHdrm/xe/oa: Fix overflow in oa batch buffer
CVE-2024-500947.5 HIGHsfc: Don't invoke xdp_do_flush() from netpoll.
CVE-2024-500957.5 HIGHRDMA/mad: Improve handling of timed out WRs of mad agent
CVE-2024-501317.3 HIGHtracing: Consider the NULL character when validating the event length
CVE-2024-500997.3 HIGHarm64: probes: Remove broken LDR (literal) uprobe support
CVE-2024-500967.3 HIGHnouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error

Showing top 20 of 50 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-50121

No comments yet


Leave a comment