Menu

Star on GitHub · 3.2k

CVE-2024-57889

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: pinctrl: mcp23s08: Fix sleeping in atomic context due to regmap locking If a device uses MCP23xxx IO expander to receive IRQs,…

Published Jan 15, 2025CWE-667EPSS 0.17%

Overview

CVE-2024-57889 is a medium-severity vulnerability. It was published on January 15, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

pinctrl: mcp23s08: Fix sleeping in atomic context due to regmap locking

If a device uses MCP23xxx IO expander to receive IRQs, the following

bug can happen:

BUG: sleeping function called from invalid context

at kernel/locking/mutex.c:283

in_atomic(): 1, irqs_disabled(): 1, non_block: 0, ...

preempt_count: 1, expected: 0

...

Call Trace:

...

__might_resched+0x104/0x10e

__might_sleep+0x3e/0x62

mutex_lock+0x20/0x4c

regmap_lock_mutex+0x10/0x18

regmap_update_bits_base+0x2c/0x66

mcp23s08_irq_set_type+0x1ae/0x1d6

__irq_set_trigger+0x56/0x172

__setup_irq+0x1e6/0x646

request_threaded_irq+0xb6/0x160

...

We observed the problem while experimenting with a touchscreen driver which

used MCP23017 IO expander (I2C).

The regmap in the pinctrl-mcp23s08 driver uses a mutex for protection from

concurrent accesses, which is the default for regmaps without .fast_io,

.disable_locking, etc.

mcp23s08_ir

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-57889?

CVE-2024-57889 is a medium-severity vulnerability. It was published on January 15, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-57889?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-57889?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-57889?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-57889 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all