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
[
{
"id": "CVE-2022-48659-006242f7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-0d13d01c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e9219fa63c5c25804af82c7aa54d1ec770ebe457",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"278415975257310371471273504017439017069",
"252976410799848144887154726515521528881"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-110ce1a4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@379ac7905ff3f0a6a4e507d3e9f710ec4fab9124",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 804.0,
"function_hash": "214843694328202265013926173758494965151"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-13eaa83e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9c323c52b379d261a72dc7bd38120a761a93cd",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-1a0438f1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02bcd951aa3c2cea95fb241c20802e9501940296",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 804.0,
"function_hash": "214843694328202265013926173758494965151"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-29ba4b67",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-3346237d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 1139.0,
"function_hash": "91131885790236576152219084749606321536"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-47dc703f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-9f1e181c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e9219fa63c5c25804af82c7aa54d1ec770ebe457",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 604.0,
"function_hash": "61193059270407819165819898083576801351"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-9fffdd6d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 804.0,
"function_hash": "214843694328202265013926173758494965151"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-a450e56d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 544.0,
"function_hash": "200992321131428619004324556698058784018"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-a46100c9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 602.0,
"function_hash": "80074103503618280927181695020308540789"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-a84b9480",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 1139.0,
"function_hash": "91131885790236576152219084749606321536"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-b87630c8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02bcd951aa3c2cea95fb241c20802e9501940296",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 602.0,
"function_hash": "80074103503618280927181695020308540789"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-c24f7408",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e9219fa63c5c25804af82c7aa54d1ec770ebe457",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 859.0,
"function_hash": "215084869488362234170738913096461608892"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-c6982482",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 602.0,
"function_hash": "80074103503618280927181695020308540789"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-c771e684",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@016b150992eebc32c4a18f783cf2bb6e2545a3d9",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-ca1ec1bc",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@379ac7905ff3f0a6a4e507d3e9f710ec4fab9124",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 602.0,
"function_hash": "80074103503618280927181695020308540789"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-d6f05b7d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@016b150992eebc32c4a18f783cf2bb6e2545a3d9",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 1139.0,
"function_hash": "91131885790236576152219084749606321536"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-e3a95a83",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@379ac7905ff3f0a6a4e507d3e9f710ec4fab9124",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-e45817a2",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@016b150992eebc32c4a18f783cf2bb6e2545a3d9",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 602.0,
"function_hash": "80074103503618280927181695020308540789"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-e8947e49",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02bcd951aa3c2cea95fb241c20802e9501940296",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "mm/slub.c"
},
"digest": {
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-48659-f849010f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9c323c52b379d261a72dc7bd38120a761a93cd",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
},
"digest": {
"length": 602.0,
"function_hash": "80074103503618280927181695020308540789"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-48659-f915d511",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9c323c52b379d261a72dc7bd38120a761a93cd",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
},
"digest": {
"length": 804.0,
"function_hash": "214843694328202265013926173758494965151"
},
"signature_type": "Function"
}
]