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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-53431— scsi: ses: Handle enclosure with just a primary component gracefully

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未处理零组件外壳情况,可能导致空指针取消引用。

CVSS 8.8 · High EPSS 0.22% · P12

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 16

VendorProduct Version RangeStatus
Linux Linux 9927c68864e9c39cc317b4f559309ba29e642168< 4e7c498c3713b09bef20c76c7319555637e8bbd5 affected
9927c68864e9c39cc317b4f559309ba29e642168< 110d425cdfb15006f3c4fde5264e786a247b6b36 affected
9927c68864e9c39cc317b4f559309ba29e642168< 176d7345b89ced72020a313bfa4e7f345d1c3aed affected
9927c68864e9c39cc317b4f559309ba29e642168< 05143d90ac90b7abc6692285895a1ef460e008ee affected
9927c68864e9c39cc317b4f559309ba29e642168< f8e702c54413eee2d8f94f61d18adadac7c87e87 affected
9927c68864e9c39cc317b4f559309ba29e642168< eabc4872f172ecb8dd8536bc366a51868154a450 affected
9927c68864e9c39cc317b4f559309ba29e642168< c8e22b7a1694bb8d025ea636816472739d859145 affected
2.6.25 affected
… +8 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-53431

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: ses: Handle enclosure with just a primary component gracefully
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: scsi: ses: Handle enclosure with just a primary component gracefully This reverts commit 3fe97ff3d949 ("scsi: ses: Don't attach if enclosure has no components") and introduces proper handling of case where there are no detected secondary components, but primary component (enumerated in num_enclosures) does exist. That fix was originally proposed by Ding Hui <dinghui@sangfor.com.cn>. Completely ignoring devices that have one primary enclosure and no secondary one results in ses_intf_add() bailing completely scsi 2:0:0:254: enclosure has no enumerated components scsi 2:0:0:254: Failed to bind enclosure -12ven in valid configurations such even on valid configurations with 1 primary and 0 secondary enclosures as below: # sg_ses /dev/sg0 3PARdata SES 3321 Supported diagnostic pages: Supported Diagnostic Pages [sdp] [0x0] Configuration (SES) [cf] [0x1] Short Enclosure Status (SES) [ses] [0x8] # sg_ses -p cf /dev/sg0 3PARdata SES 3321 Configuration diagnostic page: number of secondary subenclosures: 0 generation code: 0x0 enclosure descriptor list Subenclosure identifier: 0 [primary] relative ES process id: 0, number of ES processes: 1 number of type descriptor headers: 1 enclosure logical identifier (hex): 20000002ac02068d enclosure vendor: 3PARdata product: VV rev: 3321 type descriptor header and text list Element type: Unspecified, subenclosure id: 0 number of possible elements: 1 The changelog for the original fix follows ===== We can get a crash when disconnecting the iSCSI session, the call trace like this: [ffff00002a00fb70] kfree at ffff00000830e224 [ffff00002a00fba0] ses_intf_remove at ffff000001f200e4 [ffff00002a00fbd0] device_del at ffff0000086b6a98 [ffff00002a00fc50] device_unregister at ffff0000086b6d58 [ffff00002a00fc70] __scsi_remove_device at ffff00000870608c [ffff00002a00fca0] scsi_remove_device at ffff000008706134 [ffff00002a00fcc0] __scsi_remove_target at ffff0000087062e4 [ffff00002a00fd10] scsi_remove_target at ffff0000087064c0 [ffff00002a00fd70] __iscsi_unbind_session at ffff000001c872c4 [ffff00002a00fdb0] process_one_work at ffff00000810f35c [ffff00002a00fe00] worker_thread at ffff00000810f648 [ffff00002a00fe70] kthread at ffff000008116e98 In ses_intf_add, components count could be 0, and kcalloc 0 size scomp, but not saved in edev->component[i].scratch In this situation, edev->component[0].scratch is an invalid pointer, when kfree it in ses_intf_remove_enclosure, a crash like above would happen The call trace also could be other random cases when kfree cannot catch the invalid pointer We should not use edev->component[] array when the components count is 0 We also need check index when use edev->component[] array in ses_enclosure_data_process =====
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:A/AC:L/PR:N/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存在安全漏洞,该漏洞源于未处理零组件外壳情况,可能导致空指针取消引用。
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

Vendor Product Affected Versions CPE Subscribe
Linux Linux 9927c68864e9c39cc317b4f559309ba29e642168 ~ 4e7c498c3713b09bef20c76c7319555637e8bbd5 -
Linux Linux 2.6.25 -

II. Public POCs for CVE-2023-53431

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-53431

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-18 · 121 CVEs total

CVE-2022-50410 9.8 CRITICAL NFSD: Protect against send buffer overflow in NFSv2 READ
CVE-2022-50401 9.8 CRITICAL nfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure
CVE-2023-53382 9.8 CRITICAL net/smc: Reset connection when trying to use SMCRv2 fails.
CVE-2022-50419 8.8 HIGH Bluetooth: hci_sysfs: Fix attempting to call device_add multiple times
CVE-2023-53432 8.8 HIGH firewire: net: fix use after free in fwnet_finish_incoming_packet()
CVE-2023-53374 8.8 HIGH Bluetooth: hci_conn: fail SCO/ISO via hci_conn_failed if ACL gone early
CVE-2022-50386 8.8 HIGH Bluetooth: L2CAP: Fix user-after-free
CVE-2022-50413 8.8 HIGH wifi: mac80211: fix use-after-free
CVE-2023-53372 8.2 HIGH sctp: fix a potential overflow in sctp_ifwdtsn_skip
CVE-2023-53429 7.8 HIGH btrfs: don't check PageError in __extent_writepage
CVE-2022-50399 7.8 HIGH media: atomisp: prevent integer overflow in sh_css_set_black_frame()
CVE-2023-53373 7.8 HIGH crypto: seqiv - Handle EBUSY correctly
CVE-2023-53376 7.8 HIGH scsi: mpi3mr: Use number of bits to manage bitmap sizes
CVE-2023-53426 7.8 HIGH xsk: Fix xsk_diag use-after-free error during socket cleanup
CVE-2023-53388 7.8 HIGH drm/mediatek: Clean dangling pointer on bind error path
CVE-2022-50417 7.8 HIGH drm/panfrost: Fix GEM handle creation ref-counting
CVE-2023-53394 7.8 HIGH net/mlx5e: xsk: Fix crash on regular rq reactivation
CVE-2023-53387 7.8 HIGH scsi: ufs: core: Fix device management cmd timeout flow
CVE-2023-53398 7.8 HIGH mlx5: fix possible ptp queue fifo use-after-free
CVE-2023-53378 7.8 HIGH drm/i915/dpt: Treat the DPT BO as a framebuffer

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

IV. Related Vulnerabilities

V. Comments for CVE-2023-53431

No comments yet


Leave a comment