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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-50241— NFSD: fix use-after-free on source server when doing inter-server copy

CVSS 8.8 · High EPSS 0.36% · P29

Affected Version Matrix 12

VendorProductVersion RangeStatus
LinuxLinux624322f1adc58acd0b69f77a6ddc764207e97241< bbacfcde5fff25ac22597e8373a065c647da6738affected
624322f1adc58acd0b69f77a6ddc764207e97241< 83b94969751a691347606dbe6b1865efcfa5a643affected
624322f1adc58acd0b69f77a6ddc764207e97241< 6ea71246b7a02af675d733e72d14bd0d591d5f4aaffected
624322f1adc58acd0b69f77a6ddc764207e97241< 35aa0fb8c3033a3d78603356e96fc18c5b9cceb2affected
624322f1adc58acd0b69f77a6ddc764207e97241< 019805fea91599b22dfa62ffb29c022f35abeb06affected
5.6affected
< 5.6unaffected
5.10.150≤ 5.10.*unaffected
… +4 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2022-50241

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: fix use-after-free on source server when doing inter-server copy
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: NFSD: fix use-after-free on source server when doing inter-server copy Use-after-free occurred when the laundromat tried to free expired cpntf_state entry on the s2s_cp_stateids list after inter-server copy completed. The sc_cp_list that the expired copy state was inserted on was already freed. When COPY completes, the Linux client normally sends LOCKU(lock_state x), FREE_STATEID(lock_state x) and CLOSE(open_state y) to the source server. The nfs4_put_stid call from nfsd4_free_stateid cleans up the copy state from the s2s_cp_stateids list before freeing the lock state's stid. However, sometimes the CLOSE was sent before the FREE_STATEID request. When this happens, the nfsd4_close_open_stateid call from nfsd4_close frees all lock states on its st_locks list without cleaning up the copy state on the sc_cp_list list. When the time the FREE_STATEID arrives the server returns BAD_STATEID since the lock state was freed. This causes the use-after-free error to occur when the laundromat tries to free the expired cpntf_state. This patch adds a call to nfs4_free_cpntf_statelist in nfsd4_close_open_stateid to clean up the copy state before calling free_ol_stateid_reaplist to free the lock state's stid on the reaplist.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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存在安全漏洞,该漏洞源于未正确清理s2s_cp_stateids列表中的复制状态,可能导致释放后重用。
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 624322f1adc58acd0b69f77a6ddc764207e97241 ~ bbacfcde5fff25ac22597e8373a065c647da6738 -
LinuxLinux 5.6 -

II. Public POCs for CVE-2022-50241

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-50241

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-15 · 210 CVEs total

CVE-2022-502359.8 CRITICALNFSD: Protect against send buffer overflow in NFSv2 READDIR
CVE-2022-503359.8 CRITICAL9p: set req refcount to zero to avoid uninitialized usage
CVE-2023-531929.8 CRITICALvxlan: Fix nexthop hash size
CVE-2023-532538.8 HIGHHID: nvidia-shield: Reference hid_device devm allocation of input_dev name
CVE-2023-532268.8 HIGHwifi: mwifiex: Fix OOB and integer underflow when rx packets
CVE-2023-531948.4 HIGHfs/ntfs3: Add length check in indx_get_root
CVE-2023-532138.1 HIGHwifi: brcmfmac: slab-out-of-bounds read in brcmf_get_assoc_ies()
CVE-2023-531868.1 HIGHskbuff: Fix a race between coalescing and releasing SKBs
CVE-2022-503037.8 HIGHdrm/amdkfd: Fix double release compute pasid
CVE-2023-532547.8 HIGHcacheinfo: Fix shared_cpu_map to handle shared caches at different levels
CVE-2023-532527.8 HIGHBluetooth: use RCU for hci_conn_params and iterate safely in hci_sync
CVE-2023-531707.8 HIGHnet: dsa: Removed unneeded of_node_put in felix_parse_ports_node
CVE-2023-531767.8 HIGHserial: 8250: Reinit port->pm on port specific driver unbind
CVE-2023-531787.8 HIGHmm: fix zswap writeback race condition
CVE-2023-531797.8 HIGHnetfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
CVE-2023-531847.8 HIGHarm64/sme: Set new vector length before reallocating
CVE-2022-503157.8 HIGHata: ahci: Match EM_MAX_SLOTS with SATA_PMP_MAX_PORTS
CVE-2023-531897.8 HIGHipv6/addrconf: fix a potential refcount underflow for idev
CVE-2023-532227.8 HIGHjfs: jfs_dmap: Validate db_l2nbperpage while mounting
CVE-2023-532367.8 HIGHiommufd: Do not corrupt the pfn list when doing batch carry

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

IV. Related Vulnerabilities

V. Comments for CVE-2022-50241

No comments yet


Leave a comment