In the Linux kernel, the following vulnerability has been resolved:
ASoC: atmel: Fix error handling in sndprotoprobe
The devicenode pointer is returned by ofparsephandle() with refcount incremented. We should use ofnode_put() on it when done.
This function only calls ofnodeput() in the regular path. And it will cause refcount leak in error paths. Fix this by calling ofnodeput() in error handling too.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49246.json"
}[
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"318576835073881061680663566872564435000",
"11085010514586477079723097296932975068",
"67877791793798996892195610557651081162",
"279994427168592680387062271814494279287",
"230418925092698995895536730673088552087",
"220323830990616507019603192378738948183",
"151781528005308051861068515760552206727",
"137361871190097994836211314982745509900",
"7515765812736828812304700296316034387",
"114328333079844628571393596985018891570",
"314914635260324550767412828991709012163",
"10103482182909934610081677664064483314",
"199671295148074607091268359679525817676",
"263867542636538346812795636142038158217",
"232947428832691835343344748055961208",
"53001164409698069866966163055765694944",
"275008882330204912123957282893840645018",
"258005054425949237025062697346544581749",
"221112965467793488144540929685445055144",
"321585666030159972746387558751339267782"
],
"threshold": 0.9
},
"signature_type": "Line",
"target": {
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-12f3aa72",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f32ac9bf5e3f594ef9bfedb410aebc98cf784e69"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"318576835073881061680663566872564435000",
"11085010514586477079723097296932975068",
"67877791793798996892195610557651081162",
"279994427168592680387062271814494279287",
"230418925092698995895536730673088552087",
"220323830990616507019603192378738948183",
"151781528005308051861068515760552206727",
"137361871190097994836211314982745509900",
"7515765812736828812304700296316034387",
"114328333079844628571393596985018891570",
"314914635260324550767412828991709012163",
"10103482182909934610081677664064483314",
"199671295148074607091268359679525817676",
"263867542636538346812795636142038158217",
"232947428832691835343344748055961208",
"53001164409698069866966163055765694944",
"275008882330204912123957282893840645018",
"258005054425949237025062697346544581749",
"221112965467793488144540929685445055144",
"321585666030159972746387558751339267782"
],
"threshold": 0.9
},
"signature_type": "Line",
"target": {
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-222d6c26",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0f517480d5888cd54487c5662ce4da95b30ad798"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "301795832862646365384003352349930125376",
"length": 1944.0
},
"signature_type": "Function",
"target": {
"function": "snd_proto_probe",
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-36356a4f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f32ac9bf5e3f594ef9bfedb410aebc98cf784e69"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "235578719709772837315515583709200628576",
"length": 1944.0
},
"signature_type": "Function",
"target": {
"function": "snd_proto_probe",
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-82c5e0f8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0f517480d5888cd54487c5662ce4da95b30ad798"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "259470800083966214730080081291758370900",
"length": 1915.0
},
"signature_type": "Function",
"target": {
"function": "snd_proto_probe",
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-91a51f05",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fa969cd8485031294f91fc7184399000cae6355"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"318576835073881061680663566872564435000",
"11085010514586477079723097296932975068",
"67877791793798996892195610557651081162",
"279994427168592680387062271814494279287",
"230418925092698995895536730673088552087",
"220323830990616507019603192378738948183",
"151781528005308051861068515760552206727",
"137361871190097994836211314982745509900",
"7515765812736828812304700296316034387",
"114328333079844628571393596985018891570",
"314914635260324550767412828991709012163",
"10103482182909934610081677664064483314",
"199671295148074607091268359679525817676",
"263867542636538346812795636142038158217",
"128456417573986905514560703376774951176",
"112202218730729759344245589124396691140",
"322043519850280022657297006809221035891",
"214684002307826044875813017605840618582",
"230419187085123461446761054776054509683",
"138464166617083044743236938335921218820"
],
"threshold": 0.9
},
"signature_type": "Line",
"target": {
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-a7a17422",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fa969cd8485031294f91fc7184399000cae6355"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "259470800083966214730080081291758370900",
"length": 1915.0
},
"signature_type": "Function",
"target": {
"function": "snd_proto_probe",
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-fb4b9e88",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0bfaf0544d08d093d6211d7ef8816fb0b5b6c75"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"318576835073881061680663566872564435000",
"11085010514586477079723097296932975068",
"67877791793798996892195610557651081162",
"279994427168592680387062271814494279287",
"230418925092698995895536730673088552087",
"220323830990616507019603192378738948183",
"151781528005308051861068515760552206727",
"137361871190097994836211314982745509900",
"7515765812736828812304700296316034387",
"114328333079844628571393596985018891570",
"314914635260324550767412828991709012163",
"10103482182909934610081677664064483314",
"199671295148074607091268359679525817676",
"263867542636538346812795636142038158217",
"128456417573986905514560703376774951176",
"112202218730729759344245589124396691140",
"322043519850280022657297006809221035891",
"214684002307826044875813017605840618582",
"230419187085123461446761054776054509683",
"138464166617083044743236938335921218820"
],
"threshold": 0.9
},
"signature_type": "Line",
"target": {
"file": "sound/soc/atmel/mikroe-proto.c"
},
"deprecated": false,
"id": "CVE-2022-49246-fe9b1f97",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0bfaf0544d08d093d6211d7ef8816fb0b5b6c75"
}
]