{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2022-48995",
        "ASSIGNER": "cve@kernel.org",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nInput: raydium_ts_i2c - fix memory leak in raydium_i2c_send()\n\nThere is a kmemleak when test the raydium_i2c_ts with bpf mock device:\n\n  unreferenced object 0xffff88812d3675a0 (size 8):\n    comm \"python3\", pid 349, jiffies 4294741067 (age 95.695s)\n    hex dump (first 8 bytes):\n      11 0e 10 c0 01 00 04 00                          ........\n    backtrace:\n      [<0000000068427125>] __kmalloc+0x46/0x1b0\n      [<0000000090180f91>] raydium_i2c_send+0xd4/0x2bf [raydium_i2c_ts]\n      [<000000006e631aee>] raydium_i2c_initialize.cold+0xbc/0x3e4 [raydium_i2c_ts]\n      [<00000000dc6fcf38>] raydium_i2c_probe+0x3cd/0x6bc [raydium_i2c_ts]\n      [<00000000a310de16>] i2c_device_probe+0x651/0x680\n      [<00000000f5a96bf3>] really_probe+0x17c/0x3f0\n      [<00000000096ba499>] __driver_probe_device+0xe3/0x170\n      [<00000000c5acb4d9>] driver_probe_device+0x49/0x120\n      [<00000000264fe082>] __device_attach_driver+0xf7/0x150\n      [<00000000f919423c>] bus_for_each_drv+0x114/0x180\n      [<00000000e067feca>] __device_attach+0x1e5/0x2d0\n      [<0000000054301fc2>] bus_probe_device+0x126/0x140\n      [<00000000aad93b22>] device_add+0x810/0x1130\n      [<00000000c086a53f>] i2c_new_client_device+0x352/0x4e0\n      [<000000003c2c248c>] of_i2c_register_device+0xf1/0x110\n      [<00000000ffec4177>] of_i2c_notify+0x100/0x160\n  unreferenced object 0xffff88812d3675c8 (size 8):\n    comm \"python3\", pid 349, jiffies 4294741070 (age 95.692s)\n    hex dump (first 8 bytes):\n      22 00 36 2d 81 88 ff ff                          \".6-....\n    backtrace:\n      [<0000000068427125>] __kmalloc+0x46/0x1b0\n      [<0000000090180f91>] raydium_i2c_send+0xd4/0x2bf [raydium_i2c_ts]\n      [<000000001d5c9620>] raydium_i2c_initialize.cold+0x223/0x3e4 [raydium_i2c_ts]\n      [<00000000dc6fcf38>] raydium_i2c_probe+0x3cd/0x6bc [raydium_i2c_ts]\n      [<00000000a310de16>] i2c_device_probe+0x651/0x680\n      [<00000000f5a96bf3>] really_probe+0x17c/0x3f0\n      [<00000000096ba499>] __driver_probe_device+0xe3/0x170\n      [<00000000c5acb4d9>] driver_probe_device+0x49/0x120\n      [<00000000264fe082>] __device_attach_driver+0xf7/0x150\n      [<00000000f919423c>] bus_for_each_drv+0x114/0x180\n      [<00000000e067feca>] __device_attach+0x1e5/0x2d0\n      [<0000000054301fc2>] bus_probe_device+0x126/0x140\n      [<00000000aad93b22>] device_add+0x810/0x1130\n      [<00000000c086a53f>] i2c_new_client_device+0x352/0x4e0\n      [<000000003c2c248c>] of_i2c_register_device+0xf1/0x110\n      [<00000000ffec4177>] of_i2c_notify+0x100/0x160\n\nAfter BANK_SWITCH command from i2c BUS, no matter success or error\nhappened, the tx_buf should be freed."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "n/a"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Linux",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Linux",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "3b384bd6c3f2",
                                            "version_value": "a82869ac52f3"
                                        },
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "5.10",
                                                        "status": "affected"
                                                    },
                                                    {
                                                        "version": "0",
                                                        "lessThan": "5.10",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "5.10.158",
                                                        "lessThanOrEqual": "5.10.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "5.15.82",
                                                        "lessThanOrEqual": "5.15.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.0.12",
                                                        "lessThanOrEqual": "6.0.*",
                                                        "status": "unaffected",
                                                        "versionType": "custom"
                                                    },
                                                    {
                                                        "version": "6.1",
                                                        "lessThanOrEqual": "*",
                                                        "status": "unaffected",
                                                        "versionType": "original_commit_for_fix"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://git.kernel.org/stable/c/a82869ac52f3d9db4b2cf8fd41edc2dee7a75a61",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/a82869ac52f3d9db4b2cf8fd41edc2dee7a75a61"
            },
            {
                "url": "https://git.kernel.org/stable/c/53b9b1201e34ccc895971218559123625c56fbcd",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/53b9b1201e34ccc895971218559123625c56fbcd"
            },
            {
                "url": "https://git.kernel.org/stable/c/097c1c7a28e3da8f2811ba532be6e81faab15aab",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/097c1c7a28e3da8f2811ba532be6e81faab15aab"
            },
            {
                "url": "https://git.kernel.org/stable/c/8c9a59939deb4bfafdc451100c03d1e848b4169b",
                "refsource": "MISC",
                "name": "https://git.kernel.org/stable/c/8c9a59939deb4bfafdc451100c03d1e848b4169b"
            }
        ]
    },
    "generator": {
        "engine": "bippy-c9c4e1df01b2"
    }
}