{ "data_version": "4.0", "data_type": "CVE", "data_format": "MITRE", "CVE_data_meta": { "ID": "CVE-2021-47334", "ASSIGNER": "cve@kernel.org", "STATE": "PUBLIC" }, "description": { "description_data": [ { "lang": "eng", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmisc/libmasm/module: Fix two use after free in ibmasm_init_one\n\nIn ibmasm_init_one, it calls ibmasm_init_remote_input_dev().\nInside ibmasm_init_remote_input_dev, mouse_dev and keybd_dev are\nallocated by input_allocate_device(), and assigned to\nsp->remote.mouse_dev and sp->remote.keybd_dev respectively.\n\nIn the err_free_devices error branch of ibmasm_init_one,\nmouse_dev and keybd_dev are freed by input_free_device(), and return\nerror. Then the execution runs into error_send_message error branch\nof ibmasm_init_one, where ibmasm_free_remote_input_dev(sp) is called\nto unregister the freed sp->remote.mouse_dev and sp->remote.keybd_dev.\n\nMy patch add a \"error_init_remote\" label to handle the error of\nibmasm_init_remote_input_dev(), to avoid the uaf bugs." } ] }, "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": "1da177e4c3f4", "version_value": "1512e7dc5eb0" }, { "version_value": "not down converted", "x_cve_json_5_version_data": { "versions": [ { "version": "4.4.276", "lessThanOrEqual": "4.4.*", "status": "unaffected", "versionType": "semver" }, { "version": "4.9.276", "lessThanOrEqual": "4.9.*", "status": "unaffected", "versionType": "semver" }, { "version": "4.14.240", "lessThanOrEqual": "4.14.*", "status": "unaffected", "versionType": "semver" }, { "version": "4.19.198", "lessThanOrEqual": "4.19.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.4.134", "lessThanOrEqual": "5.4.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.10.52", "lessThanOrEqual": "5.10.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.12.19", "lessThanOrEqual": "5.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.13.4", "lessThanOrEqual": "5.13.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.14", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ], "defaultStatus": "affected" } } ] } } ] } } ] } }, "references": { "reference_data": [ { "url": "https://git.kernel.org/stable/c/1512e7dc5eb08b7d92a12e2bfcd9cb8c4a1ec069", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/1512e7dc5eb08b7d92a12e2bfcd9cb8c4a1ec069" }, { "url": "https://git.kernel.org/stable/c/29ba8e2ba89ee2862a26d91204dd5fe77ceee25a", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/29ba8e2ba89ee2862a26d91204dd5fe77ceee25a" }, { "url": "https://git.kernel.org/stable/c/5b06ca113bf197aab2ab61288f42506e0049fbab", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/5b06ca113bf197aab2ab61288f42506e0049fbab" }, { "url": "https://git.kernel.org/stable/c/481a76d4749ee3a27f902ba213fdcbb4bb39720e", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/481a76d4749ee3a27f902ba213fdcbb4bb39720e" }, { "url": "https://git.kernel.org/stable/c/38660031e80eaa6cc9370b031c180612f414b00d", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/38660031e80eaa6cc9370b031c180612f414b00d" }, { "url": "https://git.kernel.org/stable/c/b9c87ce3bc6331f82811a8cf8e930423c22523a3", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/b9c87ce3bc6331f82811a8cf8e930423c22523a3" }, { "url": "https://git.kernel.org/stable/c/ef1067d2baa847d53c9988510d99fb494de4d12c", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/ef1067d2baa847d53c9988510d99fb494de4d12c" }, { "url": "https://git.kernel.org/stable/c/a7268e8a227d5a4f0bd1584f556246b0224ab274", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/a7268e8a227d5a4f0bd1584f556246b0224ab274" }, { "url": "https://git.kernel.org/stable/c/7272b591c4cb9327c43443f67b8fbae7657dd9ae", "refsource": "MISC", "name": "https://git.kernel.org/stable/c/7272b591c4cb9327c43443f67b8fbae7657dd9ae" } ] }, "generator": { "engine": "bippy-9e1c9544281a" } }