{"id":"CVE-2025-21840","published":"2025-03-07T09:09:58Z","modified":"2026-05-11T21:07:31Z","title":"thermal/netlink: Prevent userspace segmentation fault by adjusting UAPI header","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal/netlink: Prevent userspace segmentation fault by adjusting UAPI header\n\nThe intel-lpmd tool [1], which uses the THERMAL_GENL_ATTR_CPU_CAPABILITY\nattribute to receive HFI events from kernel space, encounters a\nsegmentation fault after commit 1773572863c4 (\"thermal: netlink: Add the\ncommands and the events for the thresholds\").\n\nThe issue arises because the THERMAL_GENL_ATTR_CPU_CAPABILITY raw value\nwas changed while intel_lpmd still uses the old value.\n\nAlthough intel_lpmd can be updated to check the THERMAL_GENL_VERSION and\nuse the appropriate THERMAL_GENL_ATTR_CPU_CAPABILITY value, the commit\nitself is questionable.\n\nThe commit introduced a new element in the middle of enum thermal_genl_attr,\nwhich affects many existing attributes and introduces potential risks\nand unnecessary maintenance burdens for userspace thermal netlink event\nusers.\n\nSolve the issue by moving the newly introduced\nTHERMAL_GENL_ATTR_TZ_PREV_TEMP attribute to the end of the\nenum thermal_genl_attr. This ensures that all existing thermal generic\nnetlink attributes remain unaffected.\n\n[ rjw: Subject edits ]","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00208,"percentile":0.10836,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3a4ca365c51729143a2cab693cd40fe0bb585ef0","tags":[]},{"url":"https://git.kernel.org/stable/c/c195b9c6ab9c383d7aa3f4a65879b3ca90cb378b","tags":[]}],"priority":{"score":2.2,"factors":[{"name":"EPSS percentile","points":2.17}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1773572863c43a14a3e45f0591f28b7dec1ee52a, < 3a4ca365c51729143a2cab693cd40fe0bb585ef0",">= 1773572863c43a14a3e45f0591f28b7dec1ee52a, < c195b9c6ab9c383d7aa3f4a65879b3ca90cb378b"]},{"vendor":"Linux","product":"Linux","versions":["6.13"]}],"euvd":{"id":"EUVD-2025-7591","exploited":false,"provenance":"source"}}