In the Linux kernel, the following vulnerability has been resolved:
media: lgdt3306a: Add a check against null-pointer-def
The driver should check whether the client provides the platform_data.
The following log reveals it:
[ 29.610324] BUG: KASAN: null-ptr-deref in kmemdup+0x30/0x40 [ 29.610730] Read of size 40 at addr 0000000000000000 by task bash/414 [ 29.612820] Call Trace: [ 29.613030] <TASK> [ 29.613201] dumpstacklvl+0x56/0x6f [ 29.613496] ? kmemdup+0x30/0x40 [ 29.613754] printreport.cold+0x494/0x6b7 [ 29.614082] ? kmemdup+0x30/0x40 [ 29.614340] kasanreport+0x8a/0x190 [ 29.614628] ? kmemdup+0x30/0x40 [ 29.614888] kasancheckrange+0x14d/0x1d0 [ 29.615213] memcpy+0x20/0x60 [ 29.615454] kmemdup+0x30/0x40 [ 29.615700] lgdt3306aprobe+0x52/0x310 [ 29.616339] i2cdevice_probe+0x951/0xa90
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b479fd59a1f4a342b69fce34f222d93bf791dca4",
"id": "CVE-2022-48772-0fdf523d",
"digest": {
"line_hashes": [
"29183509983499141028012662448581112527",
"210347469443856847763474683366853736917",
"78855605276038171901420992784297026743"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/dvb-frontends/lgdt3306a.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b479fd59a1f4a342b69fce34f222d93bf791dca4",
"id": "CVE-2022-48772-68058631",
"digest": {
"function_hash": "192818969498779434536043577346480112948",
"length": 1141.0
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "lgdt3306a_probe",
"file": "drivers/media/dvb-frontends/lgdt3306a.c"
}
}
]