# CVE-2022-50844: drm/amdgpu: Fix type of second parameter in odn\_edit\_dpm\_table() callback

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:11:01.928Z
- **Modified:** 2026-06-17T05:24:17.057Z

## Who should check

- Anyone running Linux \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< f9084e9930db562bdcd47fa199a66fb45e16dab5; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< 24cba9d865157c9e23128fbcf8b86f5da9570edd; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< 36217f676b55932a12d6732c95388150015fdee6; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< e4d0ef752081e7aa6ffb7ccac11c499c732a2e05
- Anyone running Linux 5.13

## Description

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

drm/amdgpu: Fix type of second parameter in odn\_edit\_dpm\_table() callback

With clang's kernel control flow integrity (kCFI, CONFIG\_CFI\_CLANG),
indirect call targets are validated against the expected function
pointer prototype to make sure the call target is valid to help mitigate
ROP attacks. If they are not identical, there is a failure at run time,
which manifests as either a kernel panic or thread getting killed. A
proposed warning in clang aims to catch these at compile time, which
reveals:

  drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpu\_smu.c:3008:29: error: incompatible function pointer types initializing 'int (\*)(void \*, uint32\_t, long \*, uint32\_t)' (aka 'int (\*)(void \*, unsigned int, long \*, unsigned int)') with an expression of type 'int (void \*, enum PP\_OD\_DPM\_TABLE\_COMMAND, long \*, uint32\_t)' (aka 'int (void \*, enum PP\_OD\_DPM\_TABLE\_COMMAND, long \*, unsigned int)') \[-Werror,-Wincompatible-function-pointer-types-strict\]
          .odn\_edit\_dpm\_table      = smu\_od\_edit\_dpm\_table,
                                     ^~~~~~~~~~~~~~~~~~~~~
  1 error generated.

There are only two implementations of -\>odn\_edit\_dpm\_table() in 'struct
amd\_pm\_funcs': smu\_od\_edit\_dpm\_table() and pp\_odn\_edit\_dpm\_table(). One
has a second parameter type of 'enum PP\_OD\_DPM\_TABLE\_COMMAND' and the
other uses 'u32'. Ultimately, smu\_od\_edit\_dpm\_table() calls
-\>od\_edit\_dpm\_table() from 'struct pptable\_funcs' and
pp\_odn\_edit\_dpm\_table() calls -\>odn\_edit\_dpm\_table() from 'struct
pp\_hwmgr\_func', which both have a second parameter type of 'enum
PP\_OD\_DPM\_TABLE\_COMMAND'.

Update the type parameter in both the prototype in 'struct amd\_pm\_funcs'
and pp\_odn\_edit\_dpm\_table() to 'enum PP\_OD\_DPM\_TABLE\_COMMAND', which
cleans up the warning.

## Affected and fixed versions

- Linux: \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< f9084e9930db562bdcd47fa199a66fb45e16dab5; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< 24cba9d865157c9e23128fbcf8b86f5da9570edd; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< 36217f676b55932a12d6732c95388150015fdee6; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< e4d0ef752081e7aa6ffb7ccac11c499c732a2e05 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50844. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50844.md
Affected: Linux >= 8f4828d0a104d961d5eb850d0aef1530fc24e370, < f9084e9930db562bdcd47fa199a66fb45e16dab5; >= 8f4828d0a104d961d5eb850d0aef1530fc24e370, < 24cba9d865157c9e23128fbcf8b86f5da9570edd; >= 8f4828d0a104d961d5eb850d0aef1530fc24e370, < 36217f676b55932a12d6732c95388150015fdee6; >= 8f4828d0a104d961d5eb850…
Fixed in: Linux 24cba9d865157c9e23128fbcf8b86f5da9570edd, Linux 36217f676b55932a12d6732c95388150015fdee6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50844 being exploited?

There is no confirmed exploitation: CVE-2022-50844 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50844?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50844?

Linux \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< f9084e9930db562bdcd47fa199a66fb45e16dab5; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< 24cba9d865157c9e23128fbcf8b86f5da9570edd; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< 36217f676b55932a12d6732c95388150015fdee6; \>= 8f4828d0a104d961d5eb850d0aef1530fc24e370, \< e4d0ef752081e7aa6ffb7ccac11c499c732a2e05; Linux 5.13.

### Is there a fix for CVE-2022-50844?

Yes. Fixed in Linux 24cba9d865157c9e23128fbcf8b86f5da9570edd, Linux 36217f676b55932a12d6732c95388150015fdee6. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50844?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f9084e9930db562bdcd47fa199a66fb45e16dab5>
- other: <https://git.kernel.org/stable/c/24cba9d865157c9e23128fbcf8b86f5da9570edd>
- other: <https://git.kernel.org/stable/c/36217f676b55932a12d6732c95388150015fdee6>
- other: <https://git.kernel.org/stable/c/e4d0ef752081e7aa6ffb7ccac11c499c732a2e05>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50844>

HTML: <https://flawdb.com/CVE-2022-50844> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50844>
