In the Linux kernel, the following vulnerability has been resolved:
RDMA/hfi1: fix potential memory leak in setupbasectxt()
setupbasectxt() allocates a memory chunk for uctxt->groups with hfi1allocctxtrcvgroups(). When inituserctxt() fails, uctxt->groups is not released, which will lead to a memory leak.
We should release the uctxt->groups with hfi1freectxtrcvgroups() when inituserctxt() fails.
[
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-12d9aebf",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc4de8009fd6c2ca51986c6757efa964040e7d02",
"signature_type": "Line"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-2ad2d8d1",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e25b828553aecb3185a8d8d0c4f9b4e133fb5db6",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-2e24ac93",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1750be1e9f18787cf717c24dbc5fa029fc372a22",
"signature_type": "Line"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-33f7d7b3",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc4de8009fd6c2ca51986c6757efa964040e7d02",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-6e766ce2",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa2a1df3a2c85f855af7d54466ac10bd48645d63",
"signature_type": "Line"
},
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-7de2a38d",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e25b828553aecb3185a8d8d0c4f9b4e133fb5db6",
"signature_type": "Line"
},
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-80f6e676",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85c7dd1edadcdeca24e603a6618153a3bcc81ca",
"signature_type": "Line"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-9db47c4d",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@90ef48a718f88935d4af53d7dadd1ceafe103ce6",
"signature_type": "Function"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-9e5f3fee",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa2a1df3a2c85f855af7d54466ac10bd48645d63",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-a9c874ad",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9055dfe437efae77e28e57205437c878a03ccb7",
"signature_type": "Line"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-abe8a824",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85c7dd1edadcdeca24e603a6618153a3bcc81ca",
"signature_type": "Function"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-d5be7e3c",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2f90813f1c21c3d780585390af961bd17c8515ae",
"signature_type": "Function"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-d70e78b3",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1750be1e9f18787cf717c24dbc5fa029fc372a22",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-f261b653",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@90ef48a718f88935d4af53d7dadd1ceafe103ce6",
"signature_type": "Line"
},
{
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-f74f80be",
"digest": {
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2f90813f1c21c3d780585390af961bd17c8515ae",
"signature_type": "Line"
},
{
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"id": "CVE-2022-50134-fb26080f",
"digest": {
"function_hash": "43298564169325418856554997865895165764",
"length": 708.0
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9055dfe437efae77e28e57205437c878a03ccb7",
"signature_type": "Function"
}
]