CVE-2022-50558
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-10-22

Last updated on: 2025-10-22

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: regmap-irq: Use the new num_config_regs property in regmap_add_irq_chip_fwnode Commit faa87ce9196d ("regmap-irq: Introduce config registers for irq types") added the num_config_regs, then commit 9edd4f5aee84 ("regmap-irq: Deprecate type registers and virtual registers") suggested to replace num_type_reg with it. However, regmap_add_irq_chip_fwnode wasn't modified to use the new property. Later on, commit 255a03bb1bb3 ("ASoC: wcd9335: Convert irq chip to config regs") removed the old num_type_reg property from the WCD9335 driver's struct regmap_irq_chip, causing a null pointer dereference in regmap_irq_set_type when it tried to index d->type_buf as it was never allocated in regmap_add_irq_chip_fwnode: [ 39.199374] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 39.200006] Call trace: [ 39.200014] regmap_irq_set_type+0x84/0x1c0 [ 39.200026] __irq_set_trigger+0x60/0x1c0 [ 39.200040] __setup_irq+0x2f4/0x78c [ 39.200051] request_threaded_irq+0xe8/0x1a0 Use num_config_regs in regmap_add_irq_chip_fwnode instead of num_type_reg, and fall back to it if num_config_regs isn't defined to maintain backward compatibility.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-22
Last Modified
2025-10-22
Generated
2026-06-16
AI Q&A
2025-10-22
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves the regmap-irq subsystem where a recent code change introduced a new property called num_config_regs to replace an older property num_type_reg. However, the function regmap_add_irq_chip_fwnode was not updated to use the new property. Later, when the old property was removed from a driver, this caused a null pointer dereference because the related buffer was never allocated. This leads to a kernel crash when the system tries to access this null pointer.

Impact Analysis

This vulnerability can cause the Linux kernel to crash due to a null pointer dereference, leading to a denial of service. Systems using the affected regmap-irq code and drivers may become unstable or unresponsive when the issue is triggered.

Detection Guidance

This vulnerability can be detected by monitoring kernel logs for null pointer dereference errors related to regmap_irq_set_type. You can check the kernel log messages using commands like 'dmesg | grep regmap_irq_set_type' or 'journalctl -k | grep regmap_irq_set_type' to identify the specific error messages indicating the issue.

Mitigation Strategies

Immediate mitigation involves updating the Linux kernel to a version where the regmap_add_irq_chip_fwnode function uses the num_config_regs property correctly instead of the deprecated num_type_reg. This update prevents the null pointer dereference. If updating is not immediately possible, monitoring for the error and avoiding use of affected drivers like WCD9335 may reduce risk.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-50558. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart