CVE-2022-48632·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction() memcpy() is called in a loop while 'operation->length' upper bound is not checked and 'data_idx' also increments.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.19.12
- Published
- 2024-04-28
Affected versions
From: 5.16
Until: 5.19.12
Fixed in: 5.19.12
How to fix this CVE
Update your Linux kernel to version 5.19.12 or later to patch a stack overflow vulnerability in the Mellanox BlueField I2C driver. This vulnerability could allow a local attacker with user privileges to corrupt kernel memory and potentially escalate privileges. Apply the kernel update through your distribution's package manager and reboot to activate the patched kernel.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check the running kernel version with: uname -r — ensure it is 5.19.12 or later
- Verify if Mellanox BlueField I2C hardware is present by running: lsmod | grep mlxbf_i2c — if no output, this hardware is not actively used
- Search system logs for I2C transaction errors with: journalctl -u kernel | grep -i 'mlxbf\|i2c.*error'
- Confirm the fix by checking kernel config: grep CONFIG_I2C_MLXBF /boot/config-$(uname -r) — should show CONFIG_I2C_MLXBF=m or =y
FAQ
What is CVE-2022-48632?
CVE-2022-48632 is a stack overflow flaw in the Mellanox BlueField I2C driver that occurs when handling SMBus transactions with unchecked buffer lengths, allowing local privilege escalation.
Is CVE-2022-48632 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available, though it remains a high-severity risk for systems using the affected I2C driver.
What versions of Kernel are affected by CVE-2022-48632?
Linux kernel versions 5.16 through 5.19.11 are vulnerable; the fix is included in 5.19.12 and later versions.
How do I check if my server is vulnerable to CVE-2022-48632?
Run 'uname -r' to check your kernel version — if it shows 5.16 through 5.19.11, you are vulnerable. Additionally, check 'lsmod | grep mlxbf_i2c' to see if the affected driver is loaded on your system.
Does Defensia detect CVE-2022-48632?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-48632 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3b5ab5fbe69ebbee5692c72b05071a43fc0655d8
- https://git.kernel.org/stable/c/48ee0a864d1af02eea98fc825cc230d61517a71e
- https://git.kernel.org/stable/c/dc2a0c587006f29b724069740c48654b9dcaebd2
- https://git.kernel.org/stable/c/de24aceb07d426b6f1c59f33889d6a964770547b
- https://git.kernel.org/stable/c/3b5ab5fbe69ebbee5692c72b05071a43fc0655d8
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48632. Free for 1 server.
Get started free