CVEvulnerability

CVE-2023-52627

5.5 MEDIUM Published 2024-03-26 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2024-03-26
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-476

Description

In the Linux kernel, the following vulnerability has been resolved: iio: adc: ad7091r: Allow users to configure device events AD7091R-5 devices are supported by the ad7091r-5 driver together with the ad7091r-base driver. Those drivers declared iio events for notifying user space when ADC readings fall bellow the thresholds of low limit registers or above the values set in high limit registers. However, to configure iio events and their thresholds, a set of callback functions must be implemented and those were not present until now. The consequence of trying to configure ad7091r-5 events without the proper callback functions was a null pointer dereference in the kernel because the pointers to the callback functions were not set. Implement event configuration callbacks allowing users to read/write event thresholds and enable/disable event generation. Since the event spec structs are generic to AD7091R devices, also move those from the ad7091r-5 driver the base driver so they can be reused when support for ad7091r-2/-4/-8 be added.

Affected configurations

• linux linux kernel (>= 5.6 < 5.10.210) • linux linux kernel (>= 5.11 < 5.15.149) • linux linux kernel (>= 5.16 < 6.1.76) • linux linux kernel (>= 6.2 < 6.6.15) • linux linux kernel (>= 6.7 < 6.7.3) • debian debian linux 10.0

Related

Weakness · CWE (1)

  • CWE-476 NULL Pointer Dereference weakness

References