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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50134.json"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50134-12d9aebf",
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc4de8009fd6c2ca51986c6757efa964040e7d02"
},
{
"digest": {
"length": 708.0,
"function_hash": "43298564169325418856554997865895165764"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50134-2ad2d8d1",
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e25b828553aecb3185a8d8d0c4f9b4e133fb5db6"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50134-2e24ac93",
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1750be1e9f18787cf717c24dbc5fa029fc372a22"
},
{
"digest": {
"length": 708.0,
"function_hash": "43298564169325418856554997865895165764"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50134-33f7d7b3",
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fc4de8009fd6c2ca51986c6757efa964040e7d02"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50134-6e766ce2",
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa2a1df3a2c85f855af7d54466ac10bd48645d63"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50134-7de2a38d",
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e25b828553aecb3185a8d8d0c4f9b4e133fb5db6"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50134-80f6e676",
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85c7dd1edadcdeca24e603a6618153a3bcc81ca"
},
{
"digest": {
"length": 708.0,
"function_hash": "43298564169325418856554997865895165764"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50134-9e5f3fee",
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa2a1df3a2c85f855af7d54466ac10bd48645d63"
},
{
"digest": {
"length": 708.0,
"function_hash": "43298564169325418856554997865895165764"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50134-abe8a824",
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85c7dd1edadcdeca24e603a6618153a3bcc81ca"
},
{
"signature_version": "v1",
"digest": {
"length": 708.0,
"function_hash": "43298564169325418856554997865895165764"
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50134-d5be7e3c",
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2f90813f1c21c3d780585390af961bd17c8515ae"
},
{
"digest": {
"length": 708.0,
"function_hash": "43298564169325418856554997865895165764"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50134-d70e78b3",
"target": {
"function": "setup_base_ctxt",
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1750be1e9f18787cf717c24dbc5fa029fc372a22"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"144336743272330662244485344418588156495",
"30578193298550579925698215802146472089",
"153279473475856929697416318452212469485",
"165993966301545683112111821810922585543",
"85315989583083467918539181477807471030"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50134-f74f80be",
"target": {
"file": "drivers/infiniband/hw/hfi1/file_ops.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2f90813f1c21c3d780585390af961bd17c8515ae"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50134.json"