In the Linux kernel, the following vulnerability has been resolved:
calipso: fix memory leak in netlblcalipsoadd_pass()
If IPv6 support is disabled at boot (ipv6.disable=1), the calipsoinit() -> netlblcalipsoopsregister() function isn't called, and the netlblcalipsoopsget() function always returns NULL. In this case, the netlblcalipsoaddpass() function allocates memory for the doidef variable but doesn't free it with the calipsodoi_free().
BUG: memory leak unreferenced object 0xffff888011d68180 (size 64): comm "syz-executor.1", pid 10746, jiffies 4295410986 (age 17.928s) hex dump (first 32 bytes): 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<...>] kmalloc include/linux/slab.h:552 [inline] [<...>] netlblcalipsoaddpass net/netlabel/netlabelcalipso.c:76 [inline] [<...>] netlblcalipsoadd+0x22e/0x4f0 net/netlabel/netlabelcalipso.c:111 [<...>] genlfamilyrcvmsgdoit+0x22f/0x330 net/netlink/genetlink.c:739 [<...>] genlfamilyrcvmsg net/netlink/genetlink.c:783 [inline] [<...>] genlrcvmsg+0x341/0x5a0 net/netlink/genetlink.c:800 [<...>] netlinkrcvskb+0x14d/0x440 net/netlink/afnetlink.c:2515 [<...>] genlrcv+0x29/0x40 net/netlink/genetlink.c:811 [<...>] netlinkunicastkernel net/netlink/afnetlink.c:1313 [inline] [<...>] netlinkunicast+0x54b/0x800 net/netlink/afnetlink.c:1339 [<...>] netlinksendmsg+0x90a/0xdf0 net/netlink/afnetlink.c:1934 [<...>] socksendmsgnosec net/socket.c:651 [inline] [<...>] socksendmsg+0x157/0x190 net/socket.c:671 [<...>] _syssendmsg+0x712/0x870 net/socket.c:2342 [<...>] syssendmsg+0xf8/0x170 net/socket.c:2396 [<...>] _syssendmsg+0xea/0x1b0 net/socket.c:2429 [<...>] dosyscall64+0x30/0x40 arch/x86/entry/common.c:46 [<...>] entrySYSCALL64afterhwframe+0x61/0xc6
Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with Syzkaller
[PM: merged via the LSM tree at Jakub Kicinski request]
[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-1da3abd7",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@408bbd1e1746fe33e51f4c81c2febd7d3841d031"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-28e50fe3",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f14d36e6e97fe935a20e0ceb159c100f90b6627c"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-2b817a2d",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f14d36e6e97fe935a20e0ceb159c100f90b6627c"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-47431368",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4529a08d3704c17ea9c7277d180e46b99250ded"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-52593521",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44a88650ba55e6a7f2ec485d2c2413ba7e216f01"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-5c00b121",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@321b3a5592c8a9d6b654c7c64833ea67dbb33149"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-5ed9f9a1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4529a08d3704c17ea9c7277d180e46b99250ded"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-62d8bbbd",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36e19f84634aaa94f543fedc0a07588949638d53"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-77e7bda6",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44a88650ba55e6a7f2ec485d2c2413ba7e216f01"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-86175e51",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@408bbd1e1746fe33e51f4c81c2febd7d3841d031"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-8ba01acf",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36e19f84634aaa94f543fedc0a07588949638d53"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-b93bba4f",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec4e9d630a64df500641892f4e259e8149594a99"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-c01cbfd6",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@321b3a5592c8a9d6b654c7c64833ea67dbb33149"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-dc817781",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec4e9d630a64df500641892f4e259e8149594a99"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "294277602245286623663239901585535185813",
"length": 431.0
},
"target": {
"file": "net/netlabel/netlabel_calipso.c",
"function": "netlbl_calipso_add"
},
"signature_version": "v1",
"id": "CVE-2023-52698-e6b8a02d",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9a8f811a146aa2a0230f8edb2e9f4b6609aab8da"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"205605957035360387860947129293194963016",
"85986308156663078144538797391384761755",
"240713861818625266640515439159853998558",
"295541336368739151898757412022672526795",
"206004465013262791331755895081055130391",
"10477348757969499183941052652968278610",
"278995048728426931416831517548630328584",
"49238170565307482427393106648909056862",
"117915688893213828804882504072807559778",
"31195447658649940840867197268782118147",
"319677301607732978758175731068736262076",
"193980263333575722145073505575188090218",
"146843390263216654685882097280904566728",
"83557380821820996208508633126568537405",
"63425385323029634103084294721443679580",
"247896114059755527254812442844220644970",
"176370929094696576565057385007795950192",
"86167687868845579866412431195969892983",
"235736223122441387951471243268145635203",
"21367042002374000654638668817412786367",
"260718753852849194877251555944558291633",
"10764751525028175842663329490721855438",
"56904697951128862137088496337579525466",
"27475474272993027442897676791036493382",
"330037823044230958980019931570808931496",
"181675273270443898716463299424237885502"
]
},
"target": {
"file": "net/netlabel/netlabel_calipso.c"
},
"signature_version": "v1",
"id": "CVE-2023-52698-f164ed5f",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9a8f811a146aa2a0230f8edb2e9f4b6609aab8da"
}
]