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
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
]
},
"signature_type": "Line",
"id": "CVE-2022-48659-006242f7",
"signature_version": "v1",
"target": {
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
]
},
"signature_type": "Line",
"id": "CVE-2022-48659-29ba4b67",
"signature_version": "v1",
"target": {
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c",
"deprecated": false,
"digest": {
"function_hash": "91131885790236576152219084749606321536",
"length": 1139.0
},
"signature_type": "Function",
"id": "CVE-2022-48659-3346237d",
"signature_version": "v1",
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"306077915168207528251524009955734795478",
"225374918421763981471739242520333072561",
"24904362249246562006958000808416807217",
"189019825845247605893500917388579088258",
"50461145071082994720538834016904678698",
"286395786206388801415263232324100970014",
"108976070103749397106608665711378943224",
"120755246486857103964518922049114326464"
]
},
"signature_type": "Line",
"id": "CVE-2022-48659-47dc703f",
"signature_version": "v1",
"target": {
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c",
"deprecated": false,
"digest": {
"function_hash": "214843694328202265013926173758494965151",
"length": 804.0
},
"signature_type": "Function",
"id": "CVE-2022-48659-9fffdd6d",
"signature_version": "v1",
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1d83a19cec3bfeb2b3547a1f7631e432a766d1c",
"deprecated": false,
"digest": {
"function_hash": "200992321131428619004324556698058784018",
"length": 544.0
},
"signature_type": "Function",
"id": "CVE-2022-48659-a450e56d",
"signature_version": "v1",
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755",
"deprecated": false,
"digest": {
"function_hash": "80074103503618280927181695020308540789",
"length": 602.0
},
"signature_type": "Function",
"id": "CVE-2022-48659-a46100c9",
"signature_version": "v1",
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e996821717c5cf8aa1e1abdb6b3d900a231e3755",
"deprecated": false,
"digest": {
"function_hash": "91131885790236576152219084749606321536",
"length": 1139.0
},
"signature_type": "Function",
"id": "CVE-2022-48659-a84b9480",
"signature_version": "v1",
"target": {
"function": "sysfs_slab_add",
"file": "mm/slub.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d6e55e0c03804e1e227b80a5746e086d6c6696c",
"deprecated": false,
"digest": {
"function_hash": "80074103503618280927181695020308540789",
"length": 602.0
},
"signature_type": "Function",
"id": "CVE-2022-48659-c6982482",
"signature_version": "v1",
"target": {
"function": "create_unique_id",
"file": "mm/slub.c"
}
}
]