Skip to content
Heist/ feed
Back to feed
UnratedFix available

tracing: Fix crash passing ERR_PTR to kthread_stop()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: tracing: Fix crash passing ERR_PTR to kthread_stop() event_test_stuff() calls kthread_run() and unconditionally passes the returned task_struct pointer to kthread_stop(). kthread_run() returns an error pointer such as ERR_PTR(-ENOMEM) when kthread creation fails, for example under memory pressure during the boot-time event self-test. kthread_stop() then dereferences the invalid pointer, crashing the kernel. Check the result of kthread_run() before passing it to kthread_stop(). Use WARN_ON() so that a failure to create the self-test thread does not go unnoticed, matching the ring-buffer self-test fix in commit 91542863abad ("ring-buffer: Fix crash passing ERR_PTR to kthread_stop()").

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.270, 5.15.221, 6.1.188, 6.12.109, 6.18.50, 6.6.157, 7.2.4
CVEs
CVE-2026-89749
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 17:05 UTC · Revision 1

Source evidence

tracing: Fix crash passing ERR_PTR to kthread_stop()

core-osv · Original source

Published 11 Sept 2026, 19:46 UTC

In the Linux kernel, the following vulnerability has been resolved: tracing: Fix crash passing ERR_PTR to kthread_stop() event_test_stuff() calls kthread_run() and unconditionally passes the returned task_struct pointer to kthread_stop(). kthread_run() returns an error pointer such as ERR_PTR(-ENOMEM) when kthread creation fails, for example under memory pressure during the boot-time event self-test. kthread_stop() then dereferences the invalid pointer, crashing the kernel. Check the result of kthread_run() before passing it to kthread_stop(). Use WARN_ON() so that a failure to create the self-test thread does not go unnoticed, matching the ring-buffer self-test fix in commit 91542863abad ("ring-buffer: Fix crash passing ERR_PTR to kthread_stop()").

osv:CVE-2026-89749

Kernel

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

Complete source record
{
  "id": "e97f74000b0f71923bbe688c73844c05fc200af9d1f0de16ac746068770c90fb",
  "url": "https://osv.dev/vulnerability/CVE-2026-89749",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "tracing: Fix crash passing ERR_PTR to kthread_stop()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: tracing: Fix crash passing ERR_PTR to kthread_stop() event_test_stuff() calls kthread_run() and unconditionally passes the returned task_struct pointer to kthread_stop(). kthread_run() returns an error pointer such as ERR_PTR(-ENOMEM) when kthread creation fails, for example under memory pressure during the boot-time event self-test. kthread_stop() then dereferences the invalid pointer, crashing the kernel. Check the result of kthread_run() before passing it to kthread_stop(). Use WARN_ON() so that a failure to create the self-test thread does not go unnoticed, matching the ring-buffer self-test fix in commit 91542863abad (\"ring-buffer: Fix crash passing ERR_PTR to kthread_stop()\").",
    "evidence": "osv:CVE-2026-89749",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.270",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.221",
            "evidence": "/affected/1/ranges"
          },
          {
            "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": "unknown",
    "structured": {
      "id": "CVE-2026-89749",
      "aliases": [
        "CVE-2026-89749"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e6187007d6c365b551c69ea3df46f06fd1c8bd19"
                },
                {
                  "fixed": "c1a4fb7aa290f158d50654d640292e49d9055fd1"
                },
                {
                  "fixed": "42ccb215ef0a552acbbd32f81009bfe4b278ba77"
                },
                {
                  "fixed": "98d06fb9865a490e12ebe32d65b9ffac6108614d"
                },
                {
                  "fixed": "ceb1707aef5824cf024eb82d10787b7621e2ff35"
                },
                {
                  "fixed": "12a499f741fc5be3731c8b0a0d909406575cc2eb"
                },
                {
                  "fixed": "adadf4192f700bca82abfda9fa6d58c0bf37cc04"
                },
                {
                  "fixed": "c40e0b4fa365969e67011529eabdfb66d1022256"
                },
                {
                  "fixed": "649bc7df3e5d7be6f7996a95084037dbf3cad1e5"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89749.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.31"
                },
                {
                  "fixed": "5.10.270"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.221"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.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-89749.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.351290595Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/12a499f741fc5be3731c8b0a0d909406575cc2eb",
        "https://git.kernel.org/stable/c/42ccb215ef0a552acbbd32f81009bfe4b278ba77",
        "https://git.kernel.org/stable/c/649bc7df3e5d7be6f7996a95084037dbf3cad1e5",
        "https://git.kernel.org/stable/c/98d06fb9865a490e12ebe32d65b9ffac6108614d",
        "https://git.kernel.org/stable/c/adadf4192f700bca82abfda9fa6d58c0bf37cc04",
        "https://git.kernel.org/stable/c/c1a4fb7aa290f158d50654d640292e49d9055fd1",
        "https://git.kernel.org/stable/c/c40e0b4fa365969e67011529eabdfb66d1022256",
        "https://git.kernel.org/stable/c/ceb1707aef5824cf024eb82d10787b7621e2ff35",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89749.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-89749",
        "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/89xxx/CVE-2026-89749.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-89749",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 487435,
  "published_at": "2026-09-11T19:46:53.822+00:00"
}