In the Linux kernel, the following vulnerability has been resolved:
nfs4: Fix kmemleak when allocate slot failed
If one of the slot allocate failed, should cleanup all the other allocated slots, otherwise, the allocated slots will leak:
unreferenced object 0xffff8881115aa100 (size 64): comm ""mount.nfs"", pid 679, jiffies 4294744957 (age 115.037s) hex dump (first 32 bytes): 00 cc 19 73 81 88 ff ff 00 a0 5a 11 81 88 ff ff ...s......Z..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000007a4c434a>] nfs4findorcreateslot+0x8e/0x130 [<000000005472a39c>] nfs4reallocslottable+0x23f/0x270 [<00000000cd8ca0eb>] nfs40initclient+0x4a/0x90 [<00000000128486db>] nfs4initclient+0xce/0x270 [<000000008d2cacad>] nfs4setclient+0x1a2/0x2b0 [<000000000e593b52>] nfs4createserver+0x300/0x5f0 [<00000000e4425dd2>] nfs4trygettree+0x65/0x110 [<00000000d3a6176f>] vfsgettree+0x41/0xf0 [<0000000016b5ad4c>] pathmount+0x9b3/0xdd0 [<00000000494cae71>] _x64sysmount+0x190/0x1d0 [<000000005d56bdec>] dosyscall64+0x35/0x80 [<00000000687c9ae4>] entrySYSCALL64afterhwframe+0x46/0xb0
[
{
"id": "CVE-2022-49927-0bf35b69",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-49927-3338a13f",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e8436728e22181c3f12a5dbabd35ed3a8b8c593",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-49927-443ed9fd",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84b5cb476903003ae9ca88f32b57ff0eaefa6d4c",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-49927-53958cad",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@925cb538bd5851154602818dc80bf4b4d924c127",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-6650ac8d",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aae35a0c8a775fa4afa6a4e7dab3f936f1f89bbb",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-668b4859",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24641993a7dce6b1628645f4e1d97ca06c9f765d",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-74375fb5",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24641993a7dce6b1628645f4e1d97ca06c9f765d",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-49927-7feb8771",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86ce0e93cf6fb4d0c447323ac66577c642628b9d",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-49927-9a6ba3c0",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@db333ae981fb8843c383aa7dbf62cc682597d401",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-49927-a3093375",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86ce0e93cf6fb4d0c447323ac66577c642628b9d",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-a90fa932",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@925cb538bd5851154602818dc80bf4b4d924c127",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2022-49927-b77e72ab",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84b5cb476903003ae9ca88f32b57ff0eaefa6d4c",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-bc5ded60",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@db333ae981fb8843c383aa7dbf62cc682597d401",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-c9baaaf5",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45aea4fbf61e205649c29200726b9f45c1718a67",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-dd8513f5",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e8436728e22181c3f12a5dbabd35ed3a8b8c593",
"target": {
"function": "nfs40_init_client",
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"length": 315.0,
"function_hash": "123074794420536515480458966307028203067"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49927-ea0483f1",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45aea4fbf61e205649c29200726b9f45c1718a67",
"target": {
"file": "fs/nfs/nfs4client.c"
},
"digest": {
"line_hashes": [
"316372943492281161259603189481501147002",
"68643235678051123341031199111302828755",
"279300231461089489828567004140806420096",
"12183474444867225165783317821962249693"
],
"threshold": 0.9
},
"signature_type": "Line"
}
]