CVE-2026-53304 (GCVE-0-2026-53304)
Vulnerability from cvelistv5 – Published: 2026-06-26 19:41 – Updated: 2026-06-26 19:41
VLAI
Title
scsi: sg: Resolve soft lockup issue when opening /dev/sgX
Summary
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.
Severity
No CVSS data available.
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
6460e75a104d10458817d2f5b2fbff775bf0b43a , < 3d74e0654ac908c65a8f20373091826fe43b1363
(git)
Affected: 6460e75a104d10458817d2f5b2fbff775bf0b43a , < c47ccfb3d80dfed522ca06a5954ac97488d78c5a (git) Affected: 6460e75a104d10458817d2f5b2fbff775bf0b43a , < fe671d3c84ffb1b763d590c25195755adeaadaba (git) Affected: 6460e75a104d10458817d2f5b2fbff775bf0b43a , < c5f4a211e82d04ccc1809311322c47023bbe66e2 (git) Affected: 6460e75a104d10458817d2f5b2fbff775bf0b43a , < 9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202 (git) Affected: 6460e75a104d10458817d2f5b2fbff775bf0b43a , < 1afd963fcd963db0dc5d47df6dfcf010c9c4647e (git) Affected: 6460e75a104d10458817d2f5b2fbff775bf0b43a , < feade299e932967de27519338d41de348fb5b061 (git) Affected: 6460e75a104d10458817d2f5b2fbff775bf0b43a , < d06a310b45e153872033dd0cf19d5a2279121099 (git) |
|
| Linux | Linux |
Affected:
2.6.19
Unaffected: 0 , < 2.6.19 (semver) Unaffected: 5.10.258 , ≤ 5.10.* (semver) Unaffected: 5.15.209 , ≤ 5.15.* (semver) Unaffected: 6.1.175 , ≤ 6.1.* (semver) Unaffected: 6.6.141 , ≤ 6.6.* (semver) Unaffected: 6.12.91 , ≤ 6.12.* (semver) Unaffected: 6.18.33 , ≤ 6.18.* (semver) Unaffected: 7.0.10 , ≤ 7.0.* (semver) Unaffected: 7.1 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/scsi/sg.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "3d74e0654ac908c65a8f20373091826fe43b1363",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
},
{
"lessThan": "c47ccfb3d80dfed522ca06a5954ac97488d78c5a",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
},
{
"lessThan": "fe671d3c84ffb1b763d590c25195755adeaadaba",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
},
{
"lessThan": "c5f4a211e82d04ccc1809311322c47023bbe66e2",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
},
{
"lessThan": "9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
},
{
"lessThan": "1afd963fcd963db0dc5d47df6dfcf010c9c4647e",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
},
{
"lessThan": "feade299e932967de27519338d41de348fb5b061",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
},
{
"lessThan": "d06a310b45e153872033dd0cf19d5a2279121099",
"status": "affected",
"version": "6460e75a104d10458817d2f5b2fbff775bf0b43a",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/scsi/sg.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.19"
},
{
"lessThan": "2.6.19",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.258",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.209",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.175",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.141",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.91",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.33",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.0.*",
"status": "unaffected",
"version": "7.0.10",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.1",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.258",
"versionStartIncluding": "2.6.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.209",
"versionStartIncluding": "2.6.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.175",
"versionStartIncluding": "2.6.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.141",
"versionStartIncluding": "2.6.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.91",
"versionStartIncluding": "2.6.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.33",
"versionStartIncluding": "2.6.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.0.10",
"versionStartIncluding": "2.6.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.1",
"versionStartIncluding": "2.6.19",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: sg: Resolve soft lockup issue when opening /dev/sgX\n\nThe parameter def_reserved_size defines the default buffer size reserved\nfor each Sg_fd and should be restricted to a range between 0 and 1,048,576\n(see https://tldp.org/HOWTO/SCSI-Generic-HOWTO/proc.html). Although the\nfunction sg_proc_write_dressz enforces this limit, it is possible to bypass\nit by directly modifying the module parameter as shown below, which then\ncauses a soft lockup:\n\necho -1 \u003e /sys/module/sg/parameters/def_reserved_size\nexec 4\u003c\u003e /dev/sg0\n\nwatchdog: BUG: soft lockup - CPU#5 stuck for 26 seconds! [bash:537]\nModules loaded:\nCPU: 5 UID: 0 PID: 537 Command: bash, kernel version 6.19.0-rc3+ #134,\nPREEMPT disabled\nHardware: QEMU Standard PC (i440FX + PIIX, 1996), BIOS version\n1.16.1-2.fc37 dated 04/01/2014\n...\nCall Trace:\n\n sg_build_reserve+0x5c/0xa0\n sg_add_sfp+0x168/0x270\n sg_open+0x16e/0x340\n chrdev_open+0xbe/0x230\n do_dentry_open+0x175/0x480\n vfs_open+0x34/0xf0\n do_open+0x265/0x3d0\n path_openat+0x110/0x290\n do_filp_open+0xc3/0x170\n do_sys_openat2+0x71/0xe0\n __x64_sys_openat+0x6d/0xa0\n do_syscall_64+0x62/0x310\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n\nThe fix is to use module_param_cb to validate and reject invalid values\nassigned to def_reserved_size."
}
],
"providerMetadata": {
"dateUpdated": "2026-06-26T19:41:00.056Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/3d74e0654ac908c65a8f20373091826fe43b1363"
},
{
"url": "https://git.kernel.org/stable/c/c47ccfb3d80dfed522ca06a5954ac97488d78c5a"
},
{
"url": "https://git.kernel.org/stable/c/fe671d3c84ffb1b763d590c25195755adeaadaba"
},
{
"url": "https://git.kernel.org/stable/c/c5f4a211e82d04ccc1809311322c47023bbe66e2"
},
{
"url": "https://git.kernel.org/stable/c/9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202"
},
{
"url": "https://git.kernel.org/stable/c/1afd963fcd963db0dc5d47df6dfcf010c9c4647e"
},
{
"url": "https://git.kernel.org/stable/c/feade299e932967de27519338d41de348fb5b061"
},
{
"url": "https://git.kernel.org/stable/c/d06a310b45e153872033dd0cf19d5a2279121099"
}
],
"title": "scsi: sg: Resolve soft lockup issue when opening /dev/sgX",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-53304",
"datePublished": "2026-06-26T19:41:00.056Z",
"dateReserved": "2026-06-09T07:44:35.397Z",
"dateUpdated": "2026-06-26T19:41:00.056Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-53304",
"date": "2026-06-27",
"epss": "0.00185",
"percentile": "0.08349"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2026-53304\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-26T20:17:23.637\",\"lastModified\":\"2026-06-26T20:17:23.637\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nscsi: sg: Resolve soft lockup issue when opening /dev/sgX\\n\\nThe parameter def_reserved_size defines the default buffer size reserved\\nfor each Sg_fd and should be restricted to a range between 0 and 1,048,576\\n(see https://tldp.org/HOWTO/SCSI-Generic-HOWTO/proc.html). Although the\\nfunction sg_proc_write_dressz enforces this limit, it is possible to bypass\\nit by directly modifying the module parameter as shown below, which then\\ncauses a soft lockup:\\n\\necho -1 \u003e /sys/module/sg/parameters/def_reserved_size\\nexec 4\u003c\u003e /dev/sg0\\n\\nwatchdog: BUG: soft lockup - CPU#5 stuck for 26 seconds! [bash:537]\\nModules loaded:\\nCPU: 5 UID: 0 PID: 537 Command: bash, kernel version 6.19.0-rc3+ #134,\\nPREEMPT disabled\\nHardware: QEMU Standard PC (i440FX + PIIX, 1996), BIOS version\\n1.16.1-2.fc37 dated 04/01/2014\\n...\\nCall Trace:\\n\\n sg_build_reserve+0x5c/0xa0\\n sg_add_sfp+0x168/0x270\\n sg_open+0x16e/0x340\\n chrdev_open+0xbe/0x230\\n do_dentry_open+0x175/0x480\\n vfs_open+0x34/0xf0\\n do_open+0x265/0x3d0\\n path_openat+0x110/0x290\\n do_filp_open+0xc3/0x170\\n do_sys_openat2+0x71/0xe0\\n __x64_sys_openat+0x6d/0xa0\\n do_syscall_64+0x62/0x310\\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\\n\\nThe fix is to use module_param_cb to validate and reject invalid values\\nassigned to def_reserved_size.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/scsi/sg.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"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\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/scsi/sg.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2.6.19\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"2.6.19\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.258\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.209\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.175\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.141\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.91\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.33\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.10\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1afd963fcd963db0dc5d47df6dfcf010c9c4647e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3d74e0654ac908c65a8f20373091826fe43b1363\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c47ccfb3d80dfed522ca06a5954ac97488d78c5a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c5f4a211e82d04ccc1809311322c47023bbe66e2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d06a310b45e153872033dd0cf19d5a2279121099\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fe671d3c84ffb1b763d590c25195755adeaadaba\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/feade299e932967de27519338d41de348fb5b061\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…