---
id: CVE-2024-50009
title: 'cpufreq: amd-pstate: add check for cpufreq_cpu_get''s return value'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value

  cpufreq_cpu_get may return NULL. To avoid NULL-dereference check it
  and return in case of error.

  Fou…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f <
    93f404a55ff06fb0978dfdc786139b8af4a531a8
  - >-
    Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f <
    cd9f7bf6cad8b2d3876105ce3c9fc63460a046f6
  - >-
    Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f <
    5f250d44b8191d612355dd97b89b37bbc1b5d2cb
  - >-
    Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f <
    5493f9714e4cdaf0ee7cec15899a231400cb1a9f
  - Linux 5.17
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-10-22T13:28:54.062883Z'
published: '2024-10-21'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T12:19:48.234Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-50009'
references:
  - url: 'https://git.kernel.org/stable/c/93f404a55ff06fb0978dfdc786139b8af4a531a8'
  - url: 'https://git.kernel.org/stable/c/cd9f7bf6cad8b2d3876105ce3c9fc63460a046f6'
  - url: 'https://git.kernel.org/stable/c/5f250d44b8191d612355dd97b89b37bbc1b5d2cb'
  - url: 'https://git.kernel.org/stable/c/5493f9714e4cdaf0ee7cec15899a231400cb1a9f'
tags:
  - cve.org
epss: 0.00231
epssPercentile: 0.14
ingestedAt: '2026-11-03T14:47:02.509Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

cpufreq: amd-pstate: add check for cpufreq_cpu_get's return value

cpufreq_cpu_get may return NULL. To avoid NULL-dereference check it
and return in case of error.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

## Affected

- `Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f < 93f404a55ff06fb0978dfdc786139b8af4a531a8`
- `Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f < cd9f7bf6cad8b2d3876105ce3c9fc63460a046f6`
- `Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f < 5f250d44b8191d612355dd97b89b37bbc1b5d2cb`
- `Linux >= ec437d71db77a181227bf6d0ac9d4a80e58ecf0f < 5493f9714e4cdaf0ee7cec15899a231400cb1a9f`
- `Linux 5.17`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
