# CVE-2025-39818: HID: intel-thc-hid: intel-thc: Fix incorrect pointer arithmetic in I2C regs save

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-09-16T13:00:18.490Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 4228966def884c6e34b85cdc7118c5d013e1718f, \< 78d4cf0466c79452e47aa6f720afbde63e709ccc; \>= 4228966def884c6e34b85cdc7118c5d013e1718f, \< a7fc15ed629be89e51e09b743277c53e0a0168f5
- Anyone running Linux 6.14

## Description

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

HID: intel-thc-hid: intel-thc: Fix incorrect pointer arithmetic in I2C regs save

Improper use of secondary pointer (&dev-\>i2c\_subip\_regs) caused
kernel crash and out-of-bounds error:

 BUG: KASAN: slab-out-of-bounds in \_regmap\_bulk\_read+0x449/0x510
 Write of size 4 at addr ffff888136005dc0 by task kworker/u33:5/5107

 CPU: 3 UID: 0 PID: 5107 Comm: kworker/u33:5 Not tainted 6.16.0+ \#3 PREEMPT(voluntary)
 Workqueue: async async\_run\_entry\_fn
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x76/0xa0
  print\_report+0xd1/0x660
  ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
  ? kasan\_complete\_mode\_report\_info+0x26/0x200
  kasan\_report+0xe1/0x120
  ? \_regmap\_bulk\_read+0x449/0x510
  ? \_regmap\_bulk\_read+0x449/0x510
  \_\_asan\_report\_store4\_noabort+0x17/0x30
  \_regmap\_bulk\_read+0x449/0x510
  ? \_\_pfx\_\_regmap\_bulk\_read+0x10/0x10
  regmap\_bulk\_read+0x270/0x3d0
  pio\_complete+0x1ee/0x2c0 \[intel\_thc\]
  ? \_\_pfx\_pio\_complete+0x10/0x10 \[intel\_thc\]
  ? \_\_pfx\_pio\_wait+0x10/0x10 \[intel\_thc\]
  ? regmap\_update\_bits\_base+0x13b/0x1f0
  thc\_i2c\_subip\_pio\_read+0x117/0x270 \[intel\_thc\]
  thc\_i2c\_subip\_regs\_save+0xc2/0x140 \[intel\_thc\]
  ? \_\_pfx\_thc\_i2c\_subip\_regs\_save+0x10/0x10 \[intel\_thc\]
\[...\]
 The buggy address belongs to the object at ffff888136005d00
  which belongs to the cache kmalloc-rnd-12-192 of size 192
 The buggy address is located 0 bytes to the right of
  allocated 192-byte region \[ffff888136005d00, ffff888136005dc0)

Replaced with direct array indexing (&dev-\>i2c\_subip\_regs\[i\]) to ensure
safe memory access.

## Affected and fixed versions

- Linux: \>= 4228966def884c6e34b85cdc7118c5d013e1718f, \< 78d4cf0466c79452e47aa6f720afbde63e709ccc; \>= 4228966def884c6e34b85cdc7118c5d013e1718f, \< a7fc15ed629be89e51e09b743277c53e0a0168f5 (cvelist)
- Linux: 6.14 (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-2025-39818. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39818.md
Affected: Linux >= 4228966def884c6e34b85cdc7118c5d013e1718f, < 78d4cf0466c79452e47aa6f720afbde63e709ccc; >= 4228966def884c6e34b85cdc7118c5d013e1718f, < a7fc15ed629be89e51e09b743277c53e0a0168f5; Linux 6.14
Fixed in: Linux 78d4cf0466c79452e47aa6f720afbde63e709ccc

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-2025-39818 being exploited?

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

### How serious is CVE-2025-39818?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39818?

Linux \>= 4228966def884c6e34b85cdc7118c5d013e1718f, \< 78d4cf0466c79452e47aa6f720afbde63e709ccc; \>= 4228966def884c6e34b85cdc7118c5d013e1718f, \< a7fc15ed629be89e51e09b743277c53e0a0168f5; Linux 6.14.

### Is there a fix for CVE-2025-39818?

Yes. Fixed in Linux 78d4cf0466c79452e47aa6f720afbde63e709ccc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-39818?

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

- patch: <https://git.kernel.org/stable/c/78d4cf0466c79452e47aa6f720afbde63e709ccc>
- patch: <https://git.kernel.org/stable/c/a7fc15ed629be89e51e09b743277c53e0a0168f5>

## 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-2025-39818>

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