In the Linux kernel, the following vulnerability has been resolved:
vfio/mlx5: Fix an unwind issue in mlx5vfaddmigration_pages()
Fix an unwind issue in mlx5vfaddmigration_pages().
If a set of pages is allocated but fails to be added to the SG table, they need to be freed to prevent a memory leak.
Any pages successfully added to the SG table will be freed as part of mlx5vffreedata_buffer().
[
{
"id": "CVE-2024-56742-900f134b",
"target": {
"file": "drivers/vfio/pci/mlx5/cmd.c",
"function": "mlx5vf_add_migration_pages"
},
"digest": {
"length": 853.0,
"function_hash": "165230109274153439540989068660593706760"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@22e87bf3f77c18f5982c19ffe2732ef0c7a25f16",
"signature_version": "v1"
},
{
"id": "CVE-2024-56742-92f4724a",
"target": {
"file": "drivers/vfio/pci/mlx5/cmd.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"103527287988418247803051375524879696784",
"58742221754670465978445472098993722343",
"135836078725771793498725820796662912442",
"51457987075737042323530828070814755592",
"81438560797011986453935391545022109120",
"288845467748631630157287094356047305318",
"186959846598413984569024876718078513493",
"329224202218350280910675372250480081500",
"315759405425588967136264068205516151335",
"92430363972765254381492573405859263592",
"110325161093256619847582117401034994352"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@22e87bf3f77c18f5982c19ffe2732ef0c7a25f16",
"signature_version": "v1"
},
{
"id": "CVE-2024-56742-9bf9bbe7",
"target": {
"file": "drivers/vfio/pci/mlx5/cmd.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"103527287988418247803051375524879696784",
"58742221754670465978445472098993722343",
"135836078725771793498725820796662912442",
"51457987075737042323530828070814755592",
"81438560797011986453935391545022109120",
"288845467748631630157287094356047305318",
"186959846598413984569024876718078513493",
"329224202218350280910675372250480081500",
"315759405425588967136264068205516151335",
"92430363972765254381492573405859263592",
"110325161093256619847582117401034994352"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5",
"signature_version": "v1"
},
{
"id": "CVE-2024-56742-a2b91369",
"target": {
"file": "drivers/vfio/pci/mlx5/cmd.c",
"function": "mlx5vf_add_migration_pages"
},
"digest": {
"length": 853.0,
"function_hash": "165230109274153439540989068660593706760"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5",
"signature_version": "v1"
}
]