In the Linux kernel, the following vulnerability has been resolved:
pwm: lpc32xx: Remove handling of PWM channels
Because LPC32xx PWM controllers have only a single output which is registered as the only PWM device/channel per controller, it is known in advance that pwm->hwpwm value is always 0. On basis of this fact simplify the code by removing operations with pwm->hwpwm, there is no controls which require channel number as input.
Even though I wasn't aware at the time when I forward ported that patch, this fixes a null pointer dereference as lpc32xx->chip.pwms is NULL before devmpwmchipadd() is called.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53472.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53472.json"
[
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9a505f5b39d8fff1a55963a5e524c84639e98b2",
"id": "CVE-2023-53472-5652bb02",
"deprecated": false,
"target": {
"function": "lpc32xx_pwm_disable",
"file": "drivers/pwm/pwm-lpc32xx.c"
},
"signature_version": "v1",
"digest": {
"length": 271.0,
"function_hash": "308207342468895341300959692151481712528"
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9a505f5b39d8fff1a55963a5e524c84639e98b2",
"id": "CVE-2023-53472-5d52ee1d",
"deprecated": false,
"target": {
"function": "lpc32xx_pwm_config",
"file": "drivers/pwm/pwm-lpc32xx.c"
},
"signature_version": "v1",
"digest": {
"length": 648.0,
"function_hash": "240780284949677266129502187315261826433"
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9a505f5b39d8fff1a55963a5e524c84639e98b2",
"id": "CVE-2023-53472-64468465",
"deprecated": false,
"target": {
"file": "drivers/pwm/pwm-lpc32xx.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"328133230205582886916885080338951738885",
"265343061928175754358594543205263880038",
"217504292731421164929602766753523197296",
"68898913365338875320502386315442945021",
"251429185686764371981876592129873124154",
"37811081196665162412270384764403775924",
"302188011245922689223093849143158467095",
"166903133453939337501163688557959753616",
"67944388039030009193930755556541236063",
"8640335355873840262443938983165559534",
"276143983955527097692931454369955331874",
"34184000085084873051168285783921339109",
"296998447443658141864932957879109777792",
"70497133416089978836766926416830852709",
"148519673628907820943563155659027523771",
"129215108714372629764953131836262590956",
"279968365945958065785900195019825569641",
"134230876959593345587315790249094020157",
"15781011885478926568032248039499184714",
"309531383573707471372588894926337239702",
"131230599339628430890115392801940693735",
"135860195704337052021640950336865857923",
"326363817422454350653723176080197906358",
"272289265603461102379335392302438436826",
"67084878181830230560636038740311831896"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9a505f5b39d8fff1a55963a5e524c84639e98b2",
"id": "CVE-2023-53472-65b5c57b",
"deprecated": false,
"target": {
"function": "lpc32xx_pwm_probe",
"file": "drivers/pwm/pwm-lpc32xx.c"
},
"signature_version": "v1",
"digest": {
"length": 959.0,
"function_hash": "262408781566186039673741986596686092030"
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9a505f5b39d8fff1a55963a5e524c84639e98b2",
"id": "CVE-2023-53472-f3790422",
"deprecated": false,
"target": {
"function": "lpc32xx_pwm_enable",
"file": "drivers/pwm/pwm-lpc32xx.c"
},
"signature_version": "v1",
"digest": {
"length": 323.0,
"function_hash": "316411146086867474837552630830275828838"
}
}
]