CVE-2024-46715 driver: iio: add missing checks on iio_info's callback access

Medium 5.5 Published Updated

A local attacker can cause a kernel crash by accessing sysfs entries for IIO drivers that lack specific callback implementations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-46715?

CVE-2024-46715 is a medium-severity vulnerability in Linux kernel, published on 18 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

driver: iio: add missing checks on iio_info's callback access

Some callbacks from iio_info structure are accessed without any check, so if a driver doesn't implement them trying to access the corresponding sysfs entries produce a kernel oops such as:

[ 2203.527791] Unable to handle kernel NULL pointer dereference at virtual address 00000000 when execute [...] [ 2203.783416] Call trace: [ 2203.783429] iio_read_channel_info_avail from dev_attr_show+0x18/0x48 [ 2203.789807] dev_attr_show from sysfs_kf_seq_show+0x90/0x120 [ 2203.794181] sysfs_kf_seq_show from seq_read_iter+0xd0/0x4e4 [ 2203.798555] seq_read_iter from vfs_read+0x238/0x2a0 [ 2203.802236] vfs_read from ksys_read+0xa4/0xd4 [ 2203.805385] ksys_read from ret_fast_syscall+0x0/0x54 [ 2203.809135] Exception stack(0xe0badfa8 to 0xe0badff0) [ 2203.812880] dfa0: 00000003 b6f10f80 00000003 b6eab000 00020000 00000000 [ 2203.819746] dfc0: 00000003 b6f10f80 7ff00000 00000003 00000003 00000000 00020000 00000000 [ 2203.826619] dfe0: b6e1bc88 bed80958 b6e1bc94 b6e1bcb0 [ 2203.830363] Code: bad PC value [ 2203.832695] ---[ end trace 0000000000000000 ]---

Weakness: CWE-476

Which versions are affected by CVE-2024-46715?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46715?

Apply the vendor's patch.

Is CVE-2024-46715 being exploited?

There is no known exploitation of CVE-2024-46715 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-55228, BELL-CVE-2024-46715, DEBIAN-CVE-2024-46715, GHSA-wp8q-76mh-g25x, ROOT-OS-DEBIAN-11-CVE-2024-46715, ROOT-OS-UBUNTU-2204-CVE-2024-46715 and 1 more.

Is CVE-2024-46715 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free