{"api_version":"1","generated_at":"2026-12-03T06:56:55+00:00","cve":"CVE-2026-142838","urls":{"html":"https://cve.report/CVE-2026-142838","api":"https://cve.report/api/cve/CVE-2026-142838.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142838","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142838"},"summary":{"title":"platform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_get_battery_prop()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:19","updated_at":"2026-12-03 04:18:19"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f883de7f96c5748bd6f834c4afdedb7142315574","name":"https://git.kernel.org/stable/c/f883de7f96c5748bd6f834c4afdedb7142315574","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9f3eebbbd1033de0abcc2694ba4b455d30fe33f9","name":"https://git.kernel.org/stable/c/9f3eebbbd1033de0abcc2694ba4b455d30fe33f9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075","name":"https://git.kernel.org/stable/c/3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4","name":"https://git.kernel.org/stable/c/7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142838","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142838","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f4627dfd0e1924ad31c6476c0fc2308cfe12b561 f883de7f96c5748bd6f834c4afdedb7142315574 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f4627dfd0e1924ad31c6476c0fc2308cfe12b561 3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f4627dfd0e1924ad31c6476c0fc2308cfe12b561 7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f4627dfd0e1924ad31c6476c0fc2308cfe12b561 9f3eebbbd1033de0abcc2694ba4b455d30fe33f9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/platform/x86/amd/pmf/spc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"f883de7f96c5748bd6f834c4afdedb7142315574","status":"affected","version":"f4627dfd0e1924ad31c6476c0fc2308cfe12b561","versionType":"git"},{"lessThan":"3857d41c7d4db8ad2a6891e3a88ba6e8ef56e075","status":"affected","version":"f4627dfd0e1924ad31c6476c0fc2308cfe12b561","versionType":"git"},{"lessThan":"7e24cff8bb8147ddc4ca401255e3bfa6bbf1dea4","status":"affected","version":"f4627dfd0e1924ad31c6476c0fc2308cfe12b561","versionType":"git"},{"lessThan":"9f3eebbbd1033de0abcc2694ba4b455d30fe33f9","status":"affected","version":"f4627dfd0e1924ad31c6476c0fc2308cfe12b561","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/platform/x86/amd/pmf/spc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.8"},{"lessThan":"6.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:20:50.988Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142838","datePublished":"2026-12-03T03:20:50.988Z","dateReserved":"2026-12-03T03:10:28.332Z","dateUpdated":"2026-12-03T03:20:50.988Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:19","lastModifiedDate":"2026-12-03 04:18:19","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142838","Ordinal":"1","Title":"platform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_","CVE":"CVE-2026-142838","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142838","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"platform/x86/amd/pmf: Fix power_supply refcount leak in amd_pmf_"}]}}}