CVE-2024-46715

Source
https://cve.org/CVERecord?id=CVE-2024-46715
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46715.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46715
Downstream
Related
Published
2024-09-18T06:32:15.466Z
Modified
2026-06-18T03:57:38.607704946Z
Summary
driver: iio: add missing checks on iio_info's callback access
Details

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] iioreadchannelinfoavail from devattrshow+0x18/0x48 [ 2203.789807] devattrshow from sysfskfseqshow+0x90/0x120 [ 2203.794181] sysfskfseqshow from seqreaditer+0xd0/0x4e4 [ 2203.798555] seqreaditer from vfsread+0x238/0x2a0 [ 2203.802236] vfsread from ksysread+0xa4/0xd4 [ 2203.805385] ksysread from retfastsyscall+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 ]---

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46715.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
51239600074bc9979b0a0e83b72c726d7dcc3132
Fixed
2b961d5786b4b31c367c719a2f918569b444c007
Fixed
0cc7e0ee31e5c44904e98e2229d591e093282a70
Fixed
72f022ebb9deac28663fa4c04ba315ed5d6654d1
Fixed
dc537a72f64890d883d24ae4ac58733fc5bc523d
Fixed
c4ec8dedca961db056ec85cb7ca8c9f7e2e92252

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46715.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
5.15.203
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.109
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.50
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46715.json"