{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142838",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.332Z",
        "datePublished": "2026-12-03T03:20:50.988Z",
        "dateUpdated": "2026-12-03T03:20:50.988Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T03:20:50.988Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_get_battery_prop()\n\npower_supply_get_by_name() takes a reference that is only dropped on\nthe error path. On success it leaks, five times per policy evaluation.\nUnregistering the battery later trips the use_cnt WARN_ON in\npower_supply_unregister() and never frees it.\n\nWhile here, return -ENODEV instead of an uninitialised 'value' when\nno battery matches, and stop at the first supply found rather than\nletting the last one in the table win.\n\nFound by reading the code. Fix and changelog drafted with Claude Code\n(Fable 5.1) and reviewed by hand. Compile-tested only (allmodconfig,\nW=1, sparse); not run on Smart PC hardware."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/platform/x86/amd/pmf/spc.c"
                    ],
                    "versions": [
                        {
                            "version": "f4627dfd0e1924ad31c6476c0fc2308cfe12b561",
                            "lessThan": "f883de7f96c5748bd6f834c4afdedb7142315574",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f4627dfd0e1924ad31c6476c0fc2308cfe12b561",
                            "lessThan": "3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f4627dfd0e1924ad31c6476c0fc2308cfe12b561",
                            "lessThan": "7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f4627dfd0e1924ad31c6476c0fc2308cfe12b561",
                            "lessThan": "9f3eebbbd1033de0abcc2694ba4b455d30fe33f9",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/platform/x86/amd/pmf/spc.c"
                    ],
                    "versions": [
                        {
                            "version": "6.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "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.8",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/f883de7f96c5748bd6f834c4afdedb7142315574"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9f3eebbbd1033de0abcc2694ba4b455d30fe33f9"
                }
            ],
            "title": "platform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_get_battery_prop()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}