# CVE-2023-53703: HID: amd\_sfh: Fix for shift-out-of-bounds

> 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.27% (percentile 13, 2026-11-26)
- **Published:** 2025-10-22T13:23:41.450Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 5a45ed1ae34bb0e68944471f4bafb68e0a572791; \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 1e50bc2c177d4b2953d77037ac46ea0702d6aa1f; \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 87854366176403438d01f368b09de3ec2234e0f5
- Anyone running Linux 6.0

## Description

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

HID: amd\_sfh: Fix for shift-out-of-bounds

Shift operation of 'exp' and 'shift' variables exceeds the maximum number
of shift values in the u32 range leading to UBSAN shift-out-of-bounds.

...
\[    6.120512\] UBSAN: shift-out-of-bounds in drivers/hid/amd-sfh-hid/sfh1\_1/amd\_sfh\_desc.c:149:50
\[    6.120598\] shift exponent 104 is too large for 64-bit type 'long unsigned int'
\[    6.120659\] CPU: 4 PID: 96 Comm: kworker/4:1 Not tainted 6.4.0amd\_1-next-20230519-dirty \#10
\[    6.120665\] Hardware name: AMD Birman-PHX/Birman-PHX, BIOS SFH\_with\_HPD\_SEN.FD 04/05/2023
\[    6.120667\] Workqueue: events amd\_sfh\_work\_buffer \[amd\_sfh\]
\[    6.120687\] Call Trace:
\[    6.120690\]  \<TASK\>
\[    6.120694\]  dump\_stack\_lvl+0x48/0x70
\[    6.120704\]  dump\_stack+0x10/0x20
\[    6.120707\]  ubsan\_epilogue+0x9/0x40
\[    6.120716\]  \_\_ubsan\_handle\_shift\_out\_of\_bounds+0x10f/0x170
\[    6.120720\]  ? psi\_group\_change+0x25f/0x4b0
\[    6.120729\]  float\_to\_int.cold+0x18/0xba \[amd\_sfh\]
\[    6.120739\]  get\_input\_rep+0x57/0x340 \[amd\_sfh\]
\[    6.120748\]  ? \_\_schedule+0xba7/0x1b60
\[    6.120756\]  ? \_\_pfx\_get\_input\_rep+0x10/0x10 \[amd\_sfh\]
\[    6.120764\]  amd\_sfh\_work\_buffer+0x91/0x180 \[amd\_sfh\]
\[    6.120772\]  process\_one\_work+0x229/0x430
\[    6.120780\]  worker\_thread+0x4a/0x3c0
\[    6.120784\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[    6.120788\]  kthread+0xf7/0x130
\[    6.120792\]  ? \_\_pfx\_kthread+0x10/0x10
\[    6.120795\]  ret\_from\_fork+0x29/0x50
\[    6.120804\]  \</TASK\>
...

Fix this by adding the condition to validate shift ranges.

## Affected and fixed versions

- Linux: \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 5a45ed1ae34bb0e68944471f4bafb68e0a572791; \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 1e50bc2c177d4b2953d77037ac46ea0702d6aa1f; \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 87854366176403438d01f368b09de3ec2234e0f5 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 87854366176403438d01f368b09de3ec2234e0f5 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53703.md
Affected: Linux >= 93ce5e0231d79189be4d9e5f9295807b18941419, < 5a45ed1ae34bb0e68944471f4bafb68e0a572791; >= 93ce5e0231d79189be4d9e5f9295807b18941419, < 1e50bc2c177d4b2953d77037ac46ea0702d6aa1f; >= 93ce5e0231d79189be4d9e5f9295807b18941419, < 87854366176403438d01f368b09de3ec2234e0f5; Linux 6.0
Fixed in: Linux 5a45ed1ae34bb0e68944471f4bafb68e0a572791, Linux 1e50bc2c177d4b2953d77037ac46ea0702d6aa1f, Linux 87854366176403438d01f368b09de3ec2234e0f5

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-2023-53703 being exploited?

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

### How serious is CVE-2023-53703?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-53703?

Linux \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 5a45ed1ae34bb0e68944471f4bafb68e0a572791; \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 1e50bc2c177d4b2953d77037ac46ea0702d6aa1f; \>= 93ce5e0231d79189be4d9e5f9295807b18941419, \< 87854366176403438d01f368b09de3ec2234e0f5; Linux 6.0.

### Is there a fix for CVE-2023-53703?

Yes. Fixed in Linux 5a45ed1ae34bb0e68944471f4bafb68e0a572791, Linux 1e50bc2c177d4b2953d77037ac46ea0702d6aa1f, Linux 87854366176403438d01f368b09de3ec2234e0f5. Upgrade Linux to 87854366176403438d01f368b09de3ec2234e0f5 or later.

### How do I check if I'm affected by CVE-2023-53703?

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/5a45ed1ae34bb0e68944471f4bafb68e0a572791>
- other: <https://git.kernel.org/stable/c/1e50bc2c177d4b2953d77037ac46ea0702d6aa1f>
- other: <https://git.kernel.org/stable/c/87854366176403438d01f368b09de3ec2234e0f5>

## 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-2023-53703>

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