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

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2025-21850— nvmet: Fix crash when a namespace is disabled

AI Predicted 5.5 Difficulty: Moderate EPSS 0.02% · P5

Affected Version Matrix 6

VendorProductVersion RangeStatus
LinuxLinux74d16965d7ac378d28ebd833ae6d6a097186a4ec< cc0607594f6813342b27c752c6fb6f6eb9980cb5affected
74d16965d7ac378d28ebd833ae6d6a097186a4ec< 4082326807072b71496501b6a0c55ffe8d5092a5affected
6.13affected
< 6.13unaffected
6.13.5≤ 6.13.*unaffected
6.14≤ *unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-21850

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
nvmet: Fix crash when a namespace is disabled
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: nvmet: Fix crash when a namespace is disabled The namespace percpu counter protects pending I/O, and we can only safely diable the namespace once the counter drop to zero. Otherwise we end up with a crash when running blktests/nvme/058 (eg for loop transport): [ 2352.930426] [ T53909] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN PTI [ 2352.930431] [ T53909] KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] [ 2352.930434] [ T53909] CPU: 3 UID: 0 PID: 53909 Comm: kworker/u16:5 Tainted: G W 6.13.0-rc6 #232 [ 2352.930438] [ T53909] Tainted: [W]=WARN [ 2352.930440] [ T53909] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-3.fc41 04/01/2014 [ 2352.930443] [ T53909] Workqueue: nvmet-wq nvme_loop_execute_work [nvme_loop] [ 2352.930449] [ T53909] RIP: 0010:blkcg_set_ioprio+0x44/0x180 as the queue is already torn down when calling submit_bio(); So we need to init the percpu counter in nvmet_ns_enable(), and wait for it to drop to zero in nvmet_ns_disable() to avoid having I/O pending after the namespace has been disabled.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于命名空间禁用时可能导致崩溃。
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 74d16965d7ac378d28ebd833ae6d6a097186a4ec ~ cc0607594f6813342b27c752c6fb6f6eb9980cb5 -
LinuxLinux 6.13 -

II. Public POCs for CVE-2025-21850

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-21850

登录查看更多情报信息。

Other References for CVE-2025-21850 (2)

Same Patch Batch · Linux · 2025-03-12 · 26 CVEs total

CVE-2025-21855ibmvnic: Don't reference skb after sending to VIOS
CVE-2024-58087ksmbd: fix racy issue from session lookup and expire
CVE-2024-58088bpf: Fix deadlock when freeing cgroup storage
CVE-2024-58089btrfs: fix double accounting race when btrfs_run_delalloc_range() failed
CVE-2025-21844smb: client: Add check for next_buffer in receive_encrypted_standard()
CVE-2025-21845mtd: spi-nor: sst: Fix SST write failure
CVE-2025-21846acct: perform last write from workqueue
CVE-2025-21848nfp: bpf: Add check for nfp_app_ctrl_msg_alloc()
CVE-2025-21847ASoC: SOF: stream-ipc: Check for cstream nullity in sof_ipc_msg_data()
CVE-2025-21849drm/i915/gt: Use spin_lock_irqsave() in interruptible context
CVE-2025-21851bpf: Fix softlockup in arena_map_free on 64k page kernel
CVE-2025-21852net: Add rx_skb of kfree_skb to raw_tp_null_args[].
CVE-2025-21853bpf: avoid holding freeze_mutex during mmap operation
CVE-2025-21866powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC
CVE-2025-21854sockmap, vsock: For connectible sockets allow only connected
CVE-2025-21856s390/ism: add release function for struct device
CVE-2025-21857net/sched: cls_api: fix error handling causing NULL dereference
CVE-2025-21858geneve: Fix use-after-free in geneve_find_dev().
CVE-2025-21859USB: gadget: f_midi: f_midi_complete to call queue_work
CVE-2025-21861mm/migrate_device: don't add folio to be freed to LRU in migrate_device_finalize()

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-21850

No comments yet


Leave a comment