In the Linux kernel, the following vulnerability has been resolved:
clk: rockchip: Fix memory leak in rockchipclkregister_pll()
If clkregister() fails, @pll->ratetable may have allocated memory by kmemdup(), so it needs to be freed, otherwise will cause memory leak issue, this patch fixes it.
[
{
"id": "CVE-2022-50523-0c73f5a8",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@26b94635f1c84d7f6cb482179125cb17e59c90a5",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-153c2381",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b0a1f1247cd42ac5e0d369f8dbb58762692edee",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-2bacbae4",
"signature_type": "Function",
"digest": {
"length": 2983.0,
"function_hash": "71748066973486042304003370458025928631"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f02c1d8dc8d880cbaaf9094b4f396fe868ee23ff",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-4aa56375",
"signature_type": "Function",
"digest": {
"length": 2954.0,
"function_hash": "134749347790421609971922647186457024204"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f4d70c139d313948e02360304a6cbcd3a4f5deb5",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-51f58f6f",
"signature_type": "Function",
"digest": {
"length": 2983.0,
"function_hash": "71748066973486042304003370458025928631"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86e1e080ad14c5fb6c14a5f0eb530b1b38cbc968",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-62cf4f62",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86e1e080ad14c5fb6c14a5f0eb530b1b38cbc968",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-77401644",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dcd4ba068b194c6ef0071491aa3f12bec8c14d5b",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-a5175752",
"signature_type": "Function",
"digest": {
"length": 2954.0,
"function_hash": "134749347790421609971922647186457024204"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2ffb8653ea85ae39ce44347751fcc4c3e41f6bb",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-a54d5503",
"signature_type": "Function",
"digest": {
"length": 2983.0,
"function_hash": "71748066973486042304003370458025928631"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@26b94635f1c84d7f6cb482179125cb17e59c90a5",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-b58f402a",
"signature_type": "Function",
"digest": {
"length": 2954.0,
"function_hash": "134749347790421609971922647186457024204"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dcd4ba068b194c6ef0071491aa3f12bec8c14d5b",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-b8f0a6c7",
"signature_type": "Function",
"digest": {
"length": 3170.0,
"function_hash": "259370276683872341314715724253114419101"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@739a6a6bbdb793bd57938cb24aa5a6df89983546",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-c24e9bd8",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@20201c3a0a32f127fa4bdf379d6ac01c2978702d",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-c3b4f2d5",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f02c1d8dc8d880cbaaf9094b4f396fe868ee23ff",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-d1806977",
"signature_type": "Function",
"digest": {
"length": 2954.0,
"function_hash": "134749347790421609971922647186457024204"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b0a1f1247cd42ac5e0d369f8dbb58762692edee",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-e0a6be9c",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f4d70c139d313948e02360304a6cbcd3a4f5deb5",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-e0bdaa8b",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2ffb8653ea85ae39ce44347751fcc4c3e41f6bb",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-ea58b14d",
"signature_type": "Line",
"digest": {
"line_hashes": [
"313482510122144657869137155943976946275",
"145660935318082306783022226581292951498",
"179745307059847333862982155239068140720",
"335508139552059481566075854144680214391"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@739a6a6bbdb793bd57938cb24aa5a6df89983546",
"target": {
"file": "drivers/clk/rockchip/clk-pll.c"
}
},
{
"id": "CVE-2022-50523-fb021302",
"signature_type": "Function",
"digest": {
"length": 2755.0,
"function_hash": "300369784291095841756634655814075477348"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@20201c3a0a32f127fa4bdf379d6ac01c2978702d",
"target": {
"function": "rockchip_clk_register_pll",
"file": "drivers/clk/rockchip/clk-pll.c"
}
}
]