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

Goal: 1000 CNY · Raised: 1110 CNY

100%

CVE-2022-50422— scsi: libsas: Fix use-after-free bug in smp_execute_task_sg()

AI Predicted 6.5 Difficulty: Moderate EPSS 0.01% · P3

Affected Version Matrix 14

VendorProductVersion RangeStatus
LinuxLinux2908d778ab3e244900c310974e1fc1c69066e450< 117331a2a5227fb4369c2a1f321d3e3e2e2ef8feaffected
2908d778ab3e244900c310974e1fc1c69066e450< a9e5176ead6de64f572ad5c87a72825d9d3c82aeaffected
2908d778ab3e244900c310974e1fc1c69066e450< e45a1516d2933703a4823d9db71e17c3abeba24faffected
2908d778ab3e244900c310974e1fc1c69066e450< f7a785177611ffc97d645fcbc196e6de6ad2421daffected
2908d778ab3e244900c310974e1fc1c69066e450< 2e12ce270f0d926085c1209cc90397e307deef97affected
2908d778ab3e244900c310974e1fc1c69066e450< 46ba53c30666717cb06c2b3c5d896301cd00d0c0affected
2.6.19affected
< 2.6.19unaffected
… +6 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2022-50422

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
scsi: libsas: Fix use-after-free bug in smp_execute_task_sg()
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: scsi: libsas: Fix use-after-free bug in smp_execute_task_sg() When executing SMP task failed, the smp_execute_task_sg() calls del_timer() to delete "slow_task->timer". However, if the timer handler sas_task_internal_timedout() is running, the del_timer() in smp_execute_task_sg() will not stop it and a UAF will happen. The process is shown below: (thread 1) | (thread 2) smp_execute_task_sg() | sas_task_internal_timedout() ... | del_timer() | ... | ... sas_free_task(task) | kfree(task->slow_task) //FREE| | task->slow_task->... //USE Fix by calling del_timer_sync() in smp_execute_task_sg(), which makes sure the timer handler have finished before the "task->slow_task" is deallocated.
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存在安全漏洞,该漏洞源于smp_execute_task_sg函数中删除定时器时未使用同步机制,可能导致释放后重用。
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 2908d778ab3e244900c310974e1fc1c69066e450 ~ 117331a2a5227fb4369c2a1f321d3e3e2e2ef8fe -
LinuxLinux 2.6.19 -

II. Public POCs for CVE-2022-50422

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-50422

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-10-01 · 169 CVEs total

CVE-2022-50462MIPS: vpe-mt: fix possible memory leak while module exiting
CVE-2022-50452net: sched: cake: fix null pointer access issue when cake_init() fails
CVE-2022-50451fs/ntfs3: Fix memory leak on ntfs_fill_super() error path
CVE-2022-50453gpiolib: cdev: fix NULL-pointer dereferences
CVE-2022-50454drm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table()
CVE-2022-50457mtd: core: Fix refcount error in del_mtd_device()
CVE-2022-50456btrfs: fix resolving backrefs for inline extent followed by prealloc
CVE-2022-50458clk: tegra: Fix refcount leak in tegra210_clock_init
CVE-2022-50460cifs: Fix xid leak in cifs_flock()
CVE-2022-50459scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()
CVE-2022-50461net: ethernet: ti: am65-cpsw: Fix PM runtime leakage in am65_cpsw_nuss_ndo_slave_open()
CVE-2022-50467scsi: lpfc: Fix null ndlp ptr dereference in abnormal exit path for GFT_ID
CVE-2023-53488IB/hfi1: Fix possible panic during hotplug remove
CVE-2023-53489tcp/udp: Fix memleaks of sk and zerocopy skbs with TX timestamp.
CVE-2022-50469staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()
CVE-2022-50468platform/chrome: cros_usbpd_notify: Fix error handling in cros_usbpd_notify_init()
CVE-2022-50465ext4: fix leaking uninitialized memory in fast-commit journal
CVE-2022-50463powerpc/52xx: Fix a resource leak in an error handling path
CVE-2022-50464mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2()
CVE-2022-50448mm/uffd: fix warning without PTE_MARKER_UFFD_WP compiled in

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

IV. Related Vulnerabilities

V. Comments for CVE-2022-50422

No comments yet


Leave a comment