{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139797",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.953Z",
        "datePublished": "2026-11-30T13:38:05.304Z",
        "dateUpdated": "2026-11-30T13:38:05.304Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:38:05.304Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/cluster: hold a reference on the heartbeat thread\n\nSince commit 688bc88e2046 (\"ocfs2/cluster: keep heartbeat local node\nstable\"), o2hb_thread() leaves its loop and returns when the local node\nchanges, for example after \"echo 0 > node/<name>/local\".  The thread was\nstarted with kthread_run() and nothing holds a reference to its\ntask_struct, so the task is freed once it exits, while reg->hr_task still\npoints to it.\n\nReading the region's pid attribute then reads the freed task, and removing\nthe region calls kthread_stop() on it:\n\n  BUG: KASAN: slab-use-after-free in o2hb_region_pid_show+0xb3/0xc0\n  refcount_t: addition on 0; use-after-free.\n  Oops: Oops: 0000 [#1] SMP KASAN NOPTI\n  RIP: 0010:kthread_stop+0xb1/0x390\n\nThe thread could already return by itself before, when heartbeat start was\naborted or on an unclean stop, but the local node change makes it\nreachable from userspace at any time.\n\nCreate the thread, take a reference on it and only then wake it, so the\nreference cannot race with the thread exiting.  Drop it with\nkthread_stop_put()."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ocfs2/cluster/heartbeat.c"
                    ],
                    "versions": [
                        {
                            "version": "d64708cc119db01fbc55017ee6e987b680ebd59c",
                            "lessThan": "d8db249281cc185ad7d25051c85b3dcc3a697bee",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8e5cb90f212fda9f6cd29915a1ed74353108ceb3",
                            "lessThan": "4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8abb2b7c60d2b2c0f40606048c873096c03874d2",
                            "lessThan": "db6ad77a25a168756be394806bd65d8a9d267fc4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "688bc88e2046dd6ce81ce18079b5254cb8dadc0e",
                            "lessThan": "209d372db6827617329f7129253044d0fcd854bb",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "688bc88e2046dd6ce81ce18079b5254cb8dadc0e",
                            "lessThan": "aa2e38aabaae87236290e486a2b77cfa3adfbebe",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "d429482a67df16a30afaf9a3f1fe239fe73b44de",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "70d7bb7a0be033e5ebe8a2c48974692b1318891c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6.6.160",
                            "lessThan": "6.6.163",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.110",
                            "lessThan": "6.12.119",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.52",
                            "lessThan": "6.18.65",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.191",
                            "lessThan": "6.2",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2.6",
                            "lessThan": "7.3",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ocfs2/cluster/heartbeat.c"
                    ],
                    "versions": [
                        {
                            "version": "7.3",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.3",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.160",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12.110",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18.52",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.3",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.3",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.191"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.2.6"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/d8db249281cc185ad7d25051c85b3dcc3a697bee"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/db6ad77a25a168756be394806bd65d8a9d267fc4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/209d372db6827617329f7129253044d0fcd854bb"
                },
                {
                    "url": "https://git.kernel.org/stable/c/aa2e38aabaae87236290e486a2b77cfa3adfbebe"
                }
            ],
            "title": "ocfs2/cluster: hold a reference on the heartbeat thread",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}