Skip to content
Heist/ feed
Back to feed
HighFix available

net/smc: fix use-after-free in smc_rx_pipe_buf_release()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net/smc: fix use-after-free in smc_rx_pipe_buf_release() smc_rx_splice() hands RMB pages to a pipe and takes a socket reference per entry so the smc_sock stays alive until the reader finishes. The connection does not: a concurrent close runs smc_conn_free(), which releases the receive buffer back to the link group pool. smc_rx_pipe_buf_release() tests sk_state before taking the socket lock. The state can change between the test and the lock, and smc_rx_update_cons() then dereferences conn->rmb_desc and walks conn->lgr, which smc_conn_free() has already released. On the is_reg_err path smcr_buf_unuse() frees the descriptor outright, so this is a use-after-free. Take the socket lock first and test conn->freed instead. smc_conn_free() sets that flag before releasing anything, and every caller holds the socket lock. The two paths exclude each other: either the pipe release runs first with everything valid, or it sees the flag and skips the update.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.188, 6.12.109, 6.18.50, 6.6.157, 7.2.4
CVEs
CVE-2026-80982
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 16:36 UTC · Revision 1

Source evidence

net/smc: fix use-after-free in smc_rx_pipe_buf_release()

core-osv · Original source

Published 11 Sept 2026, 19:42 UTC

In the Linux kernel, the following vulnerability has been resolved: net/smc: fix use-after-free in smc_rx_pipe_buf_release() smc_rx_splice() hands RMB pages to a pipe and takes a socket reference per entry so the smc_sock stays alive until the reader finishes. The connection does not: a concurrent close runs smc_conn_free(), which releases the receive buffer back to the link group pool. smc_rx_pipe_buf_release() tests sk_state before taking the socket lock. The state can change between the test and the lock, and smc_rx_update_cons() then dereferences conn->rmb_desc and walks conn->lgr, which smc_conn_free() has already released. On the is_reg_err path smcr_buf_unuse() frees the descriptor outright, so this is a use-after-free. Take the socket lock first and test conn->freed instead. smc_conn_free() sets that flag before releasing anything, and every caller holds the socket lock. The two paths exclude each other: either the pipe release runs first with everything valid, or it sees the flag and skips the update.

osv:CVE-2026-80982

Kernel

Fixed versions: 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4

Complete source record
{
  "id": "a17a28888cab958c6ee68b17611017330a1d32820f1adc21770bd8eec53ab4e8",
  "url": "https://osv.dev/vulnerability/CVE-2026-80982",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net/smc: fix use-after-free in smc_rx_pipe_buf_release()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net/smc: fix use-after-free in smc_rx_pipe_buf_release() smc_rx_splice() hands RMB pages to a pipe and takes a socket reference per entry so the smc_sock stays alive until the reader finishes. The connection does not: a concurrent close runs smc_conn_free(), which releases the receive buffer back to the link group pool. smc_rx_pipe_buf_release() tests sk_state before taking the socket lock. The state can change between the test and the lock, and smc_rx_update_cons() then dereferences conn->rmb_desc and walks conn->lgr, which smc_conn_free() has already released. On the is_reg_err path smcr_buf_unuse() frees the descriptor outright, so this is a use-after-free. Take the socket lock first and test conn->freed instead. smc_conn_free() sets that flag before releasing anything, and every caller holds the socket lock. The two paths exclude each other: either the pipe release runs first with everything valid, or it sees the flag and skips the update.",
    "evidence": "osv:CVE-2026-80982",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.188",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.157",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.109",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.50",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-80982",
      "aliases": [
        "CVE-2026-80982"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9014db202cb764b8e14c53e7bacc81f9a1a2ba7f"
                },
                {
                  "fixed": "dadd97c8296b23aa816e91ed70041820ae087baa"
                },
                {
                  "fixed": "df441f3efbb50eb0f120b8de4bf441c31fb0551d"
                },
                {
                  "fixed": "6a644a7340df978785f3109d1e0726a982ce2c6f"
                },
                {
                  "fixed": "0761e49aa78c2f1362511054c6e9670653858837"
                },
                {
                  "fixed": "0926f59ca0f94120895b92180c636a48d0ed3a6d"
                },
                {
                  "fixed": "c924884743e948e25625b7fbf3ee2a9325a204a7"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80982.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.18.0"
                },
                {
                  "fixed": "6.1.188"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.157"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.109"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.50"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80982.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.011569167Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0761e49aa78c2f1362511054c6e9670653858837",
        "https://git.kernel.org/stable/c/0926f59ca0f94120895b92180c636a48d0ed3a6d",
        "https://git.kernel.org/stable/c/6a644a7340df978785f3109d1e0726a982ce2c6f",
        "https://git.kernel.org/stable/c/c924884743e948e25625b7fbf3ee2a9325a204a7",
        "https://git.kernel.org/stable/c/dadd97c8296b23aa816e91ed70041820ae087baa",
        "https://git.kernel.org/stable/c/df441f3efbb50eb0f120b8de4bf441c31fb0551d",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80982.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-80982",
        "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/80xxx/CVE-2026-80982.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-80982",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519884,
  "published_at": "2026-09-11T19:42:42.243+00:00"
}