In the Linux kernel, the following vulnerability has been resolved:
ext4: fix potential memory leak in ext4fcrecord_regions()
As krealloc may return NULL, in this case 'state->fcregions' may not be freed by krealloc, but 'state->fcregions' already set NULL. Then will lead to 'state->fc_regions' memory leak.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@417b0455a0b6d0f60a2930592731d1f8340e24be",
"id": "CVE-2022-50512-26dfa286",
"deprecated": false,
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"240841348449987201560089029584450068528",
"250209782028192827596469772452510644740",
"252056638827933859412184962723642456684",
"179231748527955644476242557904719117108",
"47577028142408763156818353838705689477",
"147312766332726225357906827507812992214",
"2126382268707426480323227118546779055",
"5158326879002894174954183028751613889",
"231146991548941231544860461466499458261",
"287825253366856559572402462488073676628",
"59174198826796063102469175353280638627",
"304298929279388015731839117027128901328",
"25102906562297251814341389504400087357"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@518566e71ad86b7c2f1bf6d9caee9588bb7ac158",
"id": "CVE-2022-50512-40885794",
"deprecated": false,
"target": {
"function": "ext4_fc_record_regions",
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"length": 780.0,
"function_hash": "89804449359480304073368838696204200067"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7069d105c1f15c442b68af43f7fde784f3126739",
"id": "CVE-2022-50512-83425e46",
"deprecated": false,
"target": {
"function": "ext4_fc_record_regions",
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"length": 780.0,
"function_hash": "89804449359480304073368838696204200067"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7069d105c1f15c442b68af43f7fde784f3126739",
"id": "CVE-2022-50512-85cf3503",
"deprecated": false,
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"240841348449987201560089029584450068528",
"250209782028192827596469772452510644740",
"252056638827933859412184962723642456684",
"179231748527955644476242557904719117108",
"47577028142408763156818353838705689477",
"147312766332726225357906827507812992214",
"2126382268707426480323227118546779055",
"5158326879002894174954183028751613889",
"231146991548941231544860461466499458261",
"287825253366856559572402462488073676628",
"59174198826796063102469175353280638627",
"304298929279388015731839117027128901328",
"25102906562297251814341389504400087357"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@417b0455a0b6d0f60a2930592731d1f8340e24be",
"id": "CVE-2022-50512-91d68779",
"deprecated": false,
"target": {
"function": "ext4_fc_record_regions",
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"length": 780.0,
"function_hash": "89804449359480304073368838696204200067"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cfb769d60a2a57eb3566765428b6131cd16dcfe",
"id": "CVE-2022-50512-b80e931b",
"deprecated": false,
"target": {
"function": "ext4_fc_record_regions",
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"length": 780.0,
"function_hash": "89804449359480304073368838696204200067"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4058b869e6c5e517c79e30532a350d0f3115c3e",
"id": "CVE-2022-50512-ba2c46e6",
"deprecated": false,
"target": {
"function": "ext4_fc_record_regions",
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"length": 780.0,
"function_hash": "89804449359480304073368838696204200067"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cfb769d60a2a57eb3566765428b6131cd16dcfe",
"id": "CVE-2022-50512-db6510bb",
"deprecated": false,
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"240841348449987201560089029584450068528",
"250209782028192827596469772452510644740",
"252056638827933859412184962723642456684",
"179231748527955644476242557904719117108",
"47577028142408763156818353838705689477",
"147312766332726225357906827507812992214",
"2126382268707426480323227118546779055",
"5158326879002894174954183028751613889",
"231146991548941231544860461466499458261",
"287825253366856559572402462488073676628",
"59174198826796063102469175353280638627",
"304298929279388015731839117027128901328",
"25102906562297251814341389504400087357"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@518566e71ad86b7c2f1bf6d9caee9588bb7ac158",
"id": "CVE-2022-50512-e219bc8d",
"deprecated": false,
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"240841348449987201560089029584450068528",
"250209782028192827596469772452510644740",
"252056638827933859412184962723642456684",
"179231748527955644476242557904719117108",
"47577028142408763156818353838705689477",
"147312766332726225357906827507812992214",
"2126382268707426480323227118546779055",
"5158326879002894174954183028751613889",
"231146991548941231544860461466499458261",
"287825253366856559572402462488073676628",
"59174198826796063102469175353280638627",
"304298929279388015731839117027128901328",
"25102906562297251814341389504400087357"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4058b869e6c5e517c79e30532a350d0f3115c3e",
"id": "CVE-2022-50512-e5bf3fd7",
"deprecated": false,
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"240841348449987201560089029584450068528",
"250209782028192827596469772452510644740",
"252056638827933859412184962723642456684",
"179231748527955644476242557904719117108",
"47577028142408763156818353838705689477",
"147312766332726225357906827507812992214",
"2126382268707426480323227118546779055",
"5158326879002894174954183028751613889",
"231146991548941231544860461466499458261",
"287825253366856559572402462488073676628",
"59174198826796063102469175353280638627",
"304298929279388015731839117027128901328",
"25102906562297251814341389504400087357"
]
},
"signature_type": "Line"
}
]