Skip to main content

Linux Kernel EUVDEUVD-2026-39839

| CVE-2026-53304 MEDIUM
Improper Locking (CWE-667)
2026-06-26 Linux GHSA-cx67-j66h-cm23
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local shell with write-capable privileges
  2. Delivery
    Write -1 to /sys/module/sg/parameters/def_reserved_size
  3. Exploit
    Bypass sg_proc_write_dressz range validation
  4. Execution
    Open /dev/sgX to trigger sg_build_reserve
  5. Persist
    CPU hangs in allocation loop
  6. Impact
    Kernel watchdog fires, CPU soft lockup causes denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper locking
Exploitation Conditions

Exploitation requires all of the following: (1) local access to the target system with write permission to /sys/module/sg/parameters/def_reserved_size - on default Linux distributions this path is writable only by root or a process with CAP_SYS_ADMIN, making the effective privilege requirement higher than CVSS PR:L may imply; security teams should audit the actual permission bits on their systems; (2) the sg (SCSI generic) kernel module must be loaded, which occurs only on systems with SCSI generic hardware present or where the module is explicitly loaded - systems without SCSI devices running the module autoload path are not affected; (3) an open() call on a /dev/sgX node must occur after the parameter is poisoned, which the attacker can trigger with their own process. Exploitation is limited to availability impact only - there is no confidentiality or integrity exposure. Non-SCSI systems or those with sg blacklisted are not vulnerable. No network access, no user interaction, and no non-default software installation beyond standard kernel sg support are required beyond the conditions stated.

Impact

The CVSS 3.1 score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) correctly scopes this as a local, availability-only issue with no confidentiality or integrity impact. The EPSS score of 0.18% at the 8th percentile confirms negligible real-world exploitation probability. There is no CISA KEV listing and no known public exploit code, aligning with the low EPSS signal. A notable inconsistency: CVSS PR:L implies low-privilege exploitation, but writing to /sys/module/sg/parameters/def_reserved_size on a standard Linux deployment typically requires root or CAP_SYS_ADMIN - security teams should verify the actual sysfs permission bits on their specific kernel build and distribution, as the realistic privilege bar may be PR:H. The vulnerability is further narrowed by requiring the sg module to be loaded (only relevant on systems with SCSI generic hardware) and a subsequent open() on /dev/sgX. Overall this is a low-priority issue: local-only vector, availability-only impact, very low exploitation probability, no active exploitation evidence, and patches confirmed across all major stable branches.

Exploit ScenarioDerived

A local user with sufficient privilege writes -1 to /sys/module/sg/parameters/def_reserved_size, bypassing the validation that sg_proc_write_dressz would otherwise enforce. The attacker (or any subsequent process) then opens /dev/sg0, causing sg_build_reserve to enter a non-terminating allocation loop with the corrupted parameter value; the kernel watchdog fires after approximately 26 seconds as the CPU hangs, degrading system availability. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 06, 2026

Soft CPU lockup in the Linux kernel SCSI generic (sg) driver allows a local user to trigger a denial of service by writing an out-of-range value directly to the def_reserved_size sysfs module parameter, bypassing the validation enforced by sg_proc_write_dressz. Setting def_reserved_size to -1 via /sys/module/sg/parameters/def_reserved_size causes sg_build_reserve to enter a non-terminating allocation loop on the next open() of any /dev/sgX device, hanging the affected CPU core for 26+ seconds until the kernel watchdog fires. No public exploit code has been identified and EPSS probability is very low at 0.18%; patches are confirmed available across all active stable kernel branches.

RemediationAI

The primary fix is to upgrade to a patched Linux kernel on the applicable stable branch: 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, or 7.1 (or any later release in those series). Upstream patch commits are available at https://git.kernel.org/stable/c/3d74e0654ac908c65a8f20373091826fe43b1363 and the additional commits listed in the CVE references. Where immediate kernel upgrade is not feasible, restrict write access to /sys/module/sg/parameters/def_reserved_size using filesystem ACLs or an SELinux/AppArmor policy rule denying writes to that path - this prevents parameter poisoning at the cost of losing runtime tunability of the parameter. If SCSI generic functionality is not required by any workload, blacklisting the sg module (adding 'blacklist sg' to /etc/modprobe.d/) eliminates the attack surface entirely, with the trade-off that SCSI generic device access is unavailable. Auditd rules watching for writes to /sys/module/sg/parameters/ can provide detection coverage on unpatched systems.

Affected VersionsENISA

Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <1afd963fcd963db0dc5d47df6dfcf010c9c4647e
Linux patch: 5.15.209
Linux patch: 0
Linux patch: 6.1.175
Linux 2.6.19
Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <c47ccfb3d80dfed522ca06a5954ac97488d78c5a
Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <d06a310b45e153872033dd0cf19d5a2279121099
Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <3d74e0654ac908c65a8f20373091826fe43b1363
Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <feade299e932967de27519338d41de348fb5b061
Linux patch: 6.18.33
Linux patch: 6.12.91
Linux patch: 6.6.141
Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <9676ca7b1ef31a3a65b3e61e7ce3b54ce7364202
Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <fe671d3c84ffb1b763d590c25195755adeaadaba
Linux patch: 7.1
Linux patch: 5.10.258
Linux patch: 7.0.10
Linux 6460e75a104d10458817d2f5b2fbff775bf0b43a <c5f4a211e82d04ccc1809311322c47023bbe66e2

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the Linux kernel SCSI generic character driver (drivers/scsi/sg.c), identified via CPE cpe:2.3:a:linux:linux. The def_reserved_size module parameter governs the DMA buffer reservation size (valid range: 0-1,048,576 bytes) allocated per sg file descriptor (Sg_fd). The proc-based write path sg_proc_write_dressz correctly validates and rejects out-of-range values, but the sysfs-exposed module parameter path (/sys/module/sg/parameters/def_reserved_size) had no equivalent callback validation. When set to -1, the value wraps to a very large unsigned integer; when any process subsequently calls open() on /dev/sgX, sg_build_reserve loops attempting to satisfy an unachievable allocation, consuming the CPU and triggering the kernel soft lockup watchdog. The root cause class is CWE-667 (Improper Locking / resource management - an unbounded loop that starves the CPU scheduler). The fix replaces module_param with module_param_cb, installing a validation callback that enforces the same range check on the sysfs write path that sg_proc_write_dressz already enforced.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.4 MEDIUM

Writing sysfs module parameters typically requires root/CAP_SYS_ADMIN, so PR:H is more accurate than the provided PR:L; impact is availability-only with no scope change.

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.5 LOW

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 06, 2026 - 20:37 NVD
5.5 (MEDIUM)
Patch available
Jun 26, 2026 - 21:02 EUVD
CVE Published
Jun 26, 2026 - 19:41 nvd
MEDIUM 5.5
CVE Published
Jun 26, 2026 - 19:41 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Ubiquitous
Linux kernel underlies nearly all server, cloud, and embedded environments
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy