CVE-2026-142958: iio: proximity: sx9500: ignore event config writes that don't change state
In the Linux kernel, the following vulnerability has been resolved:
iio: proximity: sx9500: ignore event config writes that don't change state
sx9500writeeventconfig() adjusts the channel and close/far user counts on every write, even when the event is already in the requested state. Writing 0 to a disabled event and then 1 leaves the counts at 0, so the channel and its interrupts stay off while the event reads as enabled. As channelusers[] is shared with raw reads, those can then wait forever for a conversion. Writing 1 twice and then 0 has the opposite effect.
Return early when the state doesn't change, as sxcommonwriteeventconfig() does.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the issue?
An actor must be able to write SX9500 event configuration values repeatedly without changing the requested enabled/disabled state. Specific problematic sequences include writing 0 to an already disabled event before enabling it, or writing 1 twice before disabling it.
What operational impact can indicate that a system is affected?
A channel can appear enabled while its channel and interrupts remain disabled. Because the channel user count is shared with raw reads, raw reads may then wait indefinitely for a conversion.
Is this limited to event handling, or can normal sensor reads be affected?
Normal raw reads can be affected because they share channel_users[] with event configuration handling. Incorrect event-config writes can leave the shared count in a state that prevents conversions from completing.
What behavior does the fix introduce?
The fix ignores event configuration writes when the requested state is already the current state. This prevents repeated writes from incorrectly changing the channel and close/far user counts.