In the Linux kernel, the following vulnerability has been resolved:
mm/slub: fix to return errno if kmalloc() fails
In createuniqueid(), kmalloc(, GFPKERNEL) can fail due to out-of-memory, if it fails, return errno correctly rather than triggering panic via BUGON();
kernel BUG at mm/slub.c:5893! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Call trace: sysfsslabadd+0x258/0x260 mm/slub.c:5973 _kmemcachecreate+0x60/0x118 mm/slub.c:4899 createcache mm/slabcommon.c:229 [inline] kmemcachecreateusercopy+0x19c/0x31c mm/slabcommon.c:335 kmemcachecreate+0x1c/0x28 mm/slabcommon.c:390 f2fskmemcachecreate fs/f2fs/f2fs.h:2766 [inline] f2fsinitxattrcaches+0x78/0xb4 fs/f2fs/xattr.c:808 f2fsfillsuper+0x1050/0x1e0c fs/f2fs/super.c:4149 mountbdev+0x1b8/0x210 fs/super.c:1400 f2fsmount+0x44/0x58 fs/f2fs/super.c:4512 legacygettree+0x30/0x74 fs/fscontext.c:610 vfsgettree+0x40/0x140 fs/super.c:1530 donewmount+0x1dc/0x4e4 fs/namespace.c:3040 pathmount+0x358/0x914 fs/namespace.c:3370 domount fs/namespace.c:3383 [inline] _dosysmount fs/namespace.c:3591 [inline] _sesysmount fs/namespace.c:3568 [inline] _arm64sysmount+0x2f8/0x408 fs/namespace.c:3568
{ "vanir_signatures": [ { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755", "digest": { "line_hashes": [ "306077915168207528251524009955734795478", "225374918421763981471739242520333072561", "24904362249246562006958000808416807217", "189019825845247605893500917388579088258", "50461145071082994720538834016904678698", "286395786206388801415263232324100970014", "108976070103749397106608665711378943224", "120755246486857103964518922049114326464" ], "threshold": 0.9 }, "id": "CVE-2022-48659-006242f7", "target": { "file": "mm/slub.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@379ac7905ff3f0a6a4e507d3e9f710ec4fab9124", "digest": { "length": 804.0, "function_hash": "214843694328202265013926173758494965151" }, "id": "CVE-2022-48659-110ce1a4", "target": { "file": "mm/slub.c", "function": "sysfs_slab_add" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02bcd951aa3c2cea95fb241c20802e9501940296", "digest": { "length": 804.0, "function_hash": "214843694328202265013926173758494965151" }, "id": "CVE-2022-48659-1a0438f1", "target": { "file": "mm/slub.c", "function": "sysfs_slab_add" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c", "digest": { "line_hashes": [ "306077915168207528251524009955734795478", "225374918421763981471739242520333072561", "24904362249246562006958000808416807217", "189019825845247605893500917388579088258", "50461145071082994720538834016904678698", "286395786206388801415263232324100970014", "108976070103749397106608665711378943224", "120755246486857103964518922049114326464" ], "threshold": 0.9 }, "id": "CVE-2022-48659-29ba4b67", "target": { "file": "mm/slub.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c", "digest": { "length": 1139.0, "function_hash": "91131885790236576152219084749606321536" }, "id": "CVE-2022-48659-3346237d", "target": { "file": "mm/slub.c", "function": "sysfs_slab_add" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c", "digest": { "line_hashes": [ "306077915168207528251524009955734795478", "225374918421763981471739242520333072561", "24904362249246562006958000808416807217", "189019825845247605893500917388579088258", "50461145071082994720538834016904678698", "286395786206388801415263232324100970014", "108976070103749397106608665711378943224", "120755246486857103964518922049114326464" ], "threshold": 0.9 }, "id": "CVE-2022-48659-47dc703f", "target": { "file": "mm/slub.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c", "digest": { "length": 804.0, "function_hash": "214843694328202265013926173758494965151" }, "id": "CVE-2022-48659-9fffdd6d", "target": { "file": "mm/slub.c", "function": "sysfs_slab_add" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c", "digest": { "length": 544.0, "function_hash": "200992321131428619004324556698058784018" }, "id": "CVE-2022-48659-a450e56d", "target": { "file": "mm/slub.c", "function": "create_unique_id" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755", "digest": { "length": 602.0, "function_hash": "80074103503618280927181695020308540789" }, "id": "CVE-2022-48659-a46100c9", "target": { "file": "mm/slub.c", "function": "create_unique_id" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755", "digest": { "length": 1139.0, "function_hash": "91131885790236576152219084749606321536" }, "id": "CVE-2022-48659-a84b9480", "target": { "file": "mm/slub.c", "function": "sysfs_slab_add" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02bcd951aa3c2cea95fb241c20802e9501940296", "digest": { "length": 602.0, "function_hash": "80074103503618280927181695020308540789" }, "id": "CVE-2022-48659-b87630c8", "target": { "file": "mm/slub.c", "function": "create_unique_id" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c", "digest": { "length": 602.0, "function_hash": "80074103503618280927181695020308540789" }, "id": "CVE-2022-48659-c6982482", "target": { "file": "mm/slub.c", "function": "create_unique_id" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@016b150992eebc32c4a18f783cf2bb6e2545a3d9", "digest": { "line_hashes": [ "306077915168207528251524009955734795478", "225374918421763981471739242520333072561", "24904362249246562006958000808416807217", "189019825845247605893500917388579088258", "50461145071082994720538834016904678698", "286395786206388801415263232324100970014", "108976070103749397106608665711378943224", "120755246486857103964518922049114326464" ], "threshold": 0.9 }, "id": "CVE-2022-48659-c771e684", "target": { "file": "mm/slub.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@379ac7905ff3f0a6a4e507d3e9f710ec4fab9124", "digest": { "length": 602.0, "function_hash": "80074103503618280927181695020308540789" }, "id": "CVE-2022-48659-ca1ec1bc", "target": { "file": "mm/slub.c", "function": "create_unique_id" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@016b150992eebc32c4a18f783cf2bb6e2545a3d9", "digest": { "length": 1139.0, "function_hash": "91131885790236576152219084749606321536" }, "id": "CVE-2022-48659-d6f05b7d", "target": { "file": "mm/slub.c", "function": "sysfs_slab_add" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@379ac7905ff3f0a6a4e507d3e9f710ec4fab9124", "digest": { "line_hashes": [ "306077915168207528251524009955734795478", "225374918421763981471739242520333072561", "24904362249246562006958000808416807217", "189019825845247605893500917388579088258", "50461145071082994720538834016904678698", "286395786206388801415263232324100970014", "108976070103749397106608665711378943224", "120755246486857103964518922049114326464" ], "threshold": 0.9 }, "id": "CVE-2022-48659-e3a95a83", "target": { "file": "mm/slub.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@016b150992eebc32c4a18f783cf2bb6e2545a3d9", "digest": { "length": 602.0, "function_hash": "80074103503618280927181695020308540789" }, "id": "CVE-2022-48659-e45817a2", "target": { "file": "mm/slub.c", "function": "create_unique_id" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02bcd951aa3c2cea95fb241c20802e9501940296", "digest": { "line_hashes": [ "306077915168207528251524009955734795478", "225374918421763981471739242520333072561", "24904362249246562006958000808416807217", "189019825845247605893500917388579088258", "50461145071082994720538834016904678698", "286395786206388801415263232324100970014", "108976070103749397106608665711378943224", "120755246486857103964518922049114326464" ], "threshold": 0.9 }, "id": "CVE-2022-48659-e8947e49", "target": { "file": "mm/slub.c" }, "signature_version": "v1" } ] }