CVE-2025-38378
Linux Ubuntu vulnerability analysis and mitigation

Overview

CVE-2025-38378 is a use-after-free vulnerability discovered in the Linux kernel's HID subsystem, specifically in the appletb-kbd driver. The vulnerability was disclosed on July 25, 2025, affecting the Linux kernel's touch bar keyboard functionality (NVD).

Technical details

The vulnerability occurs in the appletbkbdprobe() function where a 'struct appletbkbd *kbd' is allocated via devmkzalloc() for storing touch bar keyboard data. When backlightdevicegetbyname() finds a backlight device named 'appletbbacklight', a timer (kbd->inactivitytimer) is set up and armed to run after 60 seconds. The use-after-free is triggered when a failure occurs after the timer is armed, causing the device-managed memory to be freed while the timer remains active (RedHat).

Impact

The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), indicating moderate severity. The vulnerability primarily affects system availability through potential system crashes or memory corruption (RedHat).

Mitigation and workarounds

The fix involves calling timerdeletesync() to deactivate the timer on failure paths and checking for a valid kbd->backlightdev before calling timerdeletesync in appletbkbd_remove(). This prevents the timer from remaining active and accessing freed memory (RedHat).

Additional resources


SourceThis report was generated using AI

Related Linux Ubuntu vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64460HIGH7.5
  • Linux DebianLinux Debian
  • python-django
NoYesDec 02, 2025
CVE-2025-13735HIGH7.4
  • Linux UbuntuLinux Ubuntu
  • linux-fips
NoNoNov 26, 2025
CVE-2025-13372MEDIUM4.3
  • Linux DebianLinux Debian
  • py3-django
NoYesDec 02, 2025
CVE-2025-2486LOW3.7
  • Linux UbuntuLinux Ubuntu
  • edk2
NoYesNov 26, 2025
CVE-2025-66270N/AN/A
  • Linux DebianLinux Debian
  • kdeconnect
NoYesNov 27, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management