Skip to content
Heist/ feed
Back to feed
UnratedFix available

net/smc: fix sleep-inside-lock in __smc_setsockopt() causing local DoS

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net/smc: fix sleep-inside-lock in __smc_setsockopt() causing local DoS A logic flaw in __smc_setsockopt() allows a local unprivileged user to cause a Denial of Service (DoS) by holding the socket lock indefinitely. The function __smc_setsockopt() calls copy_from_sockptr() while holding lock_sock(sk). By passing a userfaultfd-monitored memory page (or FUSE-backed memory on systems where unprivileged userfaultfd is disabled) as the optval, an attacker can halt execution during the copy operation, keeping the lock held. Combined with asynchronous tear-down operations like shutdown(), this exhausts the kernel wq (kworkers) and triggers the hung task watchdog. [ 240.123456] INFO: task kworker/u8:2 blocked for more than 120 seconds. [ 240.123489] Call Trace: [ 240.123501] smc_shutdown+... [ 240.123512] lock_sock_nested+... This patch moves the user-space copy outside the lock_sock() critical section to prevent the issue.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.176, 6.12.94, 6.18.36, 6.6.143, 7.0.13
CVEs
CVE-2026-53274
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:54 UTC · Revision 1

Source evidence

net/smc: fix sleep-inside-lock in __smc_setsockopt() causing local DoS

core-osv · Original source

Published 25 Jun 2026, 08:39 UTC

In the Linux kernel, the following vulnerability has been resolved: net/smc: fix sleep-inside-lock in __smc_setsockopt() causing local DoS A logic flaw in __smc_setsockopt() allows a local unprivileged user to cause a Denial of Service (DoS) by holding the socket lock indefinitely. The function __smc_setsockopt() calls copy_from_sockptr() while holding lock_sock(sk). By passing a userfaultfd-monitored memory page (or FUSE-backed memory on systems where unprivileged userfaultfd is disabled) as the optval, an attacker can halt execution during the copy operation, keeping the lock held. Combined with asynchronous tear-down operations like shutdown(), this exhausts the kernel wq (kworkers) and triggers the hung task watchdog. [ 240.123456] INFO: task kworker/u8:2 blocked for more than 120 seconds. [ 240.123489] Call Trace: [ 240.123501] smc_shutdown+... [ 240.123512] lock_sock_nested+... This patch moves the user-space copy outside the lock_sock() critical section to prevent the issue.

osv:CVE-2026-53274

Kernel

Fixed versions: 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13

Complete source record
{
  "id": "dec9e2bda355592c283b89c3dad6fd1a2d16ed9bf452f2d8e11ea726c325f3c3",
  "url": "https://osv.dev/vulnerability/CVE-2026-53274",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net/smc: fix sleep-inside-lock in __smc_setsockopt() causing local DoS",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net/smc: fix sleep-inside-lock in __smc_setsockopt() causing local DoS A logic flaw in __smc_setsockopt() allows a local unprivileged user to cause a Denial of Service (DoS) by holding the socket lock indefinitely. The function __smc_setsockopt() calls copy_from_sockptr() while holding lock_sock(sk). By passing a userfaultfd-monitored memory page (or FUSE-backed memory on systems where unprivileged userfaultfd is disabled) as the optval, an attacker can halt execution during the copy operation, keeping the lock held. Combined with asynchronous tear-down operations like shutdown(), this exhausts the kernel wq (kworkers) and triggers the hung task watchdog. [ 240.123456] INFO: task kworker/u8:2 blocked for more than 120 seconds. [ 240.123489] Call Trace: [ 240.123501] smc_shutdown+... [ 240.123512] lock_sock_nested+... This patch moves the user-space copy outside the lock_sock() critical section to prevent the issue.",
    "evidence": "osv:CVE-2026-53274",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.176",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.143",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.94",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.36",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.13",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-53274",
      "aliases": [
        "CVE-2026-53274"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a6a6fe27bab48f0d09a64b051e7bde432fcae081"
                },
                {
                  "fixed": "35a22117839602bb52283de08894c5a7dde92420"
                },
                {
                  "fixed": "5d27d2ffe487df89ce28fda0410eafa05dbe03a0"
                },
                {
                  "fixed": "89f6fbe0033c942cb790ffd53ca93a45eeaf1c91"
                },
                {
                  "fixed": "dcd90f42a33e4220385f27b515183d0c91b2fc4a"
                },
                {
                  "fixed": "94d286fa5eedc550d42bcb9c85416af8f77736ff"
                },
                {
                  "fixed": "a3fdd924d88c30b9f488636ce0e4696012cf5511"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53274.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.18.0"
                },
                {
                  "fixed": "6.1.176"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.143"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.94"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.36"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.13"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53274.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.607714456Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/35a22117839602bb52283de08894c5a7dde92420",
        "https://git.kernel.org/stable/c/5d27d2ffe487df89ce28fda0410eafa05dbe03a0",
        "https://git.kernel.org/stable/c/89f6fbe0033c942cb790ffd53ca93a45eeaf1c91",
        "https://git.kernel.org/stable/c/94d286fa5eedc550d42bcb9c85416af8f77736ff",
        "https://git.kernel.org/stable/c/a3fdd924d88c30b9f488636ce0e4696012cf5511",
        "https://git.kernel.org/stable/c/dcd90f42a33e4220385f27b515183d0c91b2fc4a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53274.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-53274",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53274.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-53274",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 497484,
  "published_at": "2026-06-25T08:39:58.478+00:00"
}