5.5
MEDIUM CVSS 3.1
CVE-2026-53304
scsi: sg: Resolve soft lockup issue when opening /dev/sgX
Description

In the Linux kernel, the following vulnerability has been resolved: scsi: sg: Resolve soft lockup issue when opening /dev/sgX The parameter def_reserved_size defines the default buffer size reserved for each Sg_fd and should be restricted to a range between 0 and 1,048,576 (see https://tldp.org/HOWTO/SCSI-Generic-HOWTO/proc.html). Although the function sg_proc_write_dressz enforces this limit, it is possible to bypass it by directly modifying the module parameter as shown below, which then causes a soft lockup: echo -1 > /sys/module/sg/parameters/def_reserved_size exec 4<> /dev/sg0 watchdog: BUG: soft lockup - CPU#5 stuck for 26 seconds! [bash:537] Modules loaded: CPU: 5 UID: 0 PID: 537 Command: bash, kernel version 6.19.0-rc3+ #134, PREEMPT disabled Hardware: QEMU Standard PC (i440FX + PIIX, 1996), BIOS version 1.16.1-2.fc37 dated 04/01/2014 ... Call Trace: sg_build_reserve+0x5c/0xa0 sg_add_sfp+0x168/0x270 sg_open+0x16e/0x340 chrdev_open+0xbe/0x230 do_dentry_open+0x175/0x480 vfs_open+0x34/0xf0 do_open+0x265/0x3d0 path_openat+0x110/0x290 do_filp_open+0xc3/0x170 do_sys_openat2+0x71/0xe0 __x64_sys_openat+0x6d/0xa0 do_syscall_64+0x62/0x310 entry_SYSCALL_64_after_hwframe+0x76/0x7e The fix is to use module_param_cb to validate and reject invalid values assigned to def_reserved_size.

INFO

Published Date :

June 26, 2026, 8:17 p.m.

Last Modified :

July 6, 2026, 8:24 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-53304 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
The Linux kernel's sg module parameter def_reserved_size was improperly handled, causing soft lockups. The fix uses module_param_cb to validate input.
  • Update the Linux kernel to a version with the fix.
  • Ensure module parameters are validated before assignment.
  • Avoid setting def_reserved_size to invalid values.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-53304 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-53304 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-53304 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-53304 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jul. 06, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-667
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.141 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.91 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.33 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.10 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.175 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.209 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.19 up to (excluding) 5.10.258
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/1afd963fcd963db0dc5d47df6dfcf010c9c4647e Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/3d74e0654ac908c65a8f20373091826fe43b1363 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/c47ccfb3d80dfed522ca06a5954ac97488d78c5a Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/c5f4a211e82d04ccc1809311322c47023bbe66e2 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/d06a310b45e153872033dd0cf19d5a2279121099 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/fe671d3c84ffb1b763d590c25195755adeaadaba Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/feade299e932967de27519338d41de348fb5b061 Types: Patch
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 26, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': '3d74e0654ac908c65a8f20373091826fe43b1363', 'versionType': 'git'}, {'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': 'c47ccfb3d80dfed522ca06a5954ac97488d78c5a', 'versionType': 'git'}, {'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': 'fe671d3c84ffb1b763d590c25195755adeaadaba', 'versionType': 'git'}, {'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': 'c5f4a211e82d04ccc1809311322c47023bbe66e2', 'versionType': 'git'}, {'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': '9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202', 'versionType': 'git'}, {'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': '1afd963fcd963db0dc5d47df6dfcf010c9c4647e', 'versionType': 'git'}, {'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': 'feade299e932967de27519338d41de348fb5b061', 'versionType': 'git'}, {'status': 'affected', 'version': '6460e75a104d10458817d2f5b2fbff775bf0b43a', 'lessThan': 'd06a310b45e153872033dd0cf19d5a2279121099', 'versionType': 'git'}], 'programFiles': ['drivers/scsi/sg.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2.6.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '2.6.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.258', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.209', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.141', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.91', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.33', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.10', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/scsi/sg.c'], 'defaultStatus': 'affected'}]
    Added Description In the Linux kernel, the following vulnerability has been resolved: scsi: sg: Resolve soft lockup issue when opening /dev/sgX The parameter def_reserved_size defines the default buffer size reserved for each Sg_fd and should be restricted to a range between 0 and 1,048,576 (see https://tldp.org/HOWTO/SCSI-Generic-HOWTO/proc.html). Although the function sg_proc_write_dressz enforces this limit, it is possible to bypass it by directly modifying the module parameter as shown below, which then causes a soft lockup: echo -1 > /sys/module/sg/parameters/def_reserved_size exec 4<> /dev/sg0 watchdog: BUG: soft lockup - CPU#5 stuck for 26 seconds! [bash:537] Modules loaded: CPU: 5 UID: 0 PID: 537 Command: bash, kernel version 6.19.0-rc3+ #134, PREEMPT disabled Hardware: QEMU Standard PC (i440FX + PIIX, 1996), BIOS version 1.16.1-2.fc37 dated 04/01/2014 ... Call Trace: sg_build_reserve+0x5c/0xa0 sg_add_sfp+0x168/0x270 sg_open+0x16e/0x340 chrdev_open+0xbe/0x230 do_dentry_open+0x175/0x480 vfs_open+0x34/0xf0 do_open+0x265/0x3d0 path_openat+0x110/0x290 do_filp_open+0xc3/0x170 do_sys_openat2+0x71/0xe0 __x64_sys_openat+0x6d/0xa0 do_syscall_64+0x62/0x310 entry_SYSCALL_64_after_hwframe+0x76/0x7e The fix is to use module_param_cb to validate and reject invalid values assigned to def_reserved_size.
    Added Reference https://git.kernel.org/stable/c/1afd963fcd963db0dc5d47df6dfcf010c9c4647e
    Added Reference https://git.kernel.org/stable/c/3d74e0654ac908c65a8f20373091826fe43b1363
    Added Reference https://git.kernel.org/stable/c/9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202
    Added Reference https://git.kernel.org/stable/c/c47ccfb3d80dfed522ca06a5954ac97488d78c5a
    Added Reference https://git.kernel.org/stable/c/c5f4a211e82d04ccc1809311322c47023bbe66e2
    Added Reference https://git.kernel.org/stable/c/d06a310b45e153872033dd0cf19d5a2279121099
    Added Reference https://git.kernel.org/stable/c/fe671d3c84ffb1b763d590c25195755adeaadaba
    Added Reference https://git.kernel.org/stable/c/feade299e932967de27519338d41de348fb5b061
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.