cve-2024-43900
Vulnerability from cvelistv5
Published
2024-08-26 10:10
Modified
2024-12-19 09:18
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: media: xc2028: avoid use-after-free in load_firmware_cb() syzkaller reported use-after-free in load_firmware_cb() [1]. The reason is because the module allocated a struct tuner in tuner_probe(), and then the module initialization failed, the struct tuner was released. A worker which created during module initialization accesses this struct tuner later, it caused use-after-free. The process is as follows: task-6504 worker_thread tuner_probe <= alloc dvb_frontend [2] ... request_firmware_nowait <= create a worker ... tuner_remove <= free dvb_frontend ... request_firmware_work_func <= the firmware is ready load_firmware_cb <= but now the dvb_frontend has been freed To fix the issue, check the dvd_frontend in load_firmware_cb(), if it is null, report a warning and just return. [1]: ================================================================== BUG: KASAN: use-after-free in load_firmware_cb+0x1310/0x17a0 Read of size 8 at addr ffff8000d7ca2308 by task kworker/2:3/6504 Call trace: load_firmware_cb+0x1310/0x17a0 request_firmware_work_func+0x128/0x220 process_one_work+0x770/0x1824 worker_thread+0x488/0xea0 kthread+0x300/0x430 ret_from_fork+0x10/0x20 Allocated by task 6504: kzalloc tuner_probe+0xb0/0x1430 i2c_device_probe+0x92c/0xaf0 really_probe+0x678/0xcd0 driver_probe_device+0x280/0x370 __device_attach_driver+0x220/0x330 bus_for_each_drv+0x134/0x1c0 __device_attach+0x1f4/0x410 device_initial_probe+0x20/0x30 bus_probe_device+0x184/0x200 device_add+0x924/0x12c0 device_register+0x24/0x30 i2c_new_device+0x4e0/0xc44 v4l2_i2c_new_subdev_board+0xbc/0x290 v4l2_i2c_new_subdev+0xc8/0x104 em28xx_v4l2_init+0x1dd0/0x3770 Freed by task 6504: kfree+0x238/0x4e4 tuner_remove+0x144/0x1c0 i2c_device_remove+0xc8/0x290 __device_release_driver+0x314/0x5fc device_release_driver+0x30/0x44 bus_remove_device+0x244/0x490 device_del+0x350/0x900 device_unregister+0x28/0xd0 i2c_unregister_device+0x174/0x1d0 v4l2_device_unregister+0x224/0x380 em28xx_v4l2_init+0x1d90/0x3770 The buggy address belongs to the object at ffff8000d7ca2000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 776 bytes inside of 2048-byte region [ffff8000d7ca2000, ffff8000d7ca2800) The buggy address belongs to the page: page:ffff7fe00035f280 count:1 mapcount:0 mapping:ffff8000c001f000 index:0x0 flags: 0x7ff800000000100(slab) raw: 07ff800000000100 ffff7fe00049d880 0000000300000003 ffff8000c001f000 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8000d7ca2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8000d7ca2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8000d7ca2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8000d7ca2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8000d7ca2400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== [2] Actually, it is allocated for struct tuner, and dvb_frontend is inside.
Impacted products
Vendor Product Version
Linux Linux Version: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Version: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Version: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Version: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Create a notification for this product.
   Linux Linux Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-43900",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-09-10T15:28:53.298476Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-09-12T17:32:57.642Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "drivers/media/tuners/xc2028.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "ef517bdfc01818419f7bd426969a0c86b14f3e0e",
                     status: "affected",
                     version: "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                     versionType: "git",
                  },
                  {
                     lessThan: "850304152d367f104d21c77cfbcc05806504218b",
                     status: "affected",
                     version: "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                     versionType: "git",
                  },
                  {
                     lessThan: "208deb6d8c3cb8c3acb1f41eb31cf68ea08726d5",
                     status: "affected",
                     version: "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                     versionType: "git",
                  },
                  {
                     lessThan: "68594cec291ff9523b9feb3f43fd853dcddd1f60",
                     status: "affected",
                     version: "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "drivers/media/tuners/xc2028.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThanOrEqual: "6.1.*",
                     status: "unaffected",
                     version: "6.1.105",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.6.*",
                     status: "unaffected",
                     version: "6.6.46",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.10.*",
                     status: "unaffected",
                     version: "6.10.5",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "*",
                     status: "unaffected",
                     version: "6.11",
                     versionType: "original_commit_for_fix",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: xc2028: avoid use-after-free in load_firmware_cb()\n\nsyzkaller reported use-after-free in load_firmware_cb() [1].\nThe reason is because the module allocated a struct tuner in tuner_probe(),\nand then the module initialization failed, the struct tuner was released.\nA worker which created during module initialization accesses this struct\ntuner later, it caused use-after-free.\n\nThe process is as follows:\n\ntask-6504           worker_thread\ntuner_probe                             <= alloc dvb_frontend [2]\n...\nrequest_firmware_nowait                 <= create a worker\n...\ntuner_remove                            <= free dvb_frontend\n...\n                    request_firmware_work_func  <= the firmware is ready\n                    load_firmware_cb    <= but now the dvb_frontend has been freed\n\nTo fix the issue, check the dvd_frontend in load_firmware_cb(), if it is\nnull, report a warning and just return.\n\n[1]:\n    ==================================================================\n     BUG: KASAN: use-after-free in load_firmware_cb+0x1310/0x17a0\n     Read of size 8 at addr ffff8000d7ca2308 by task kworker/2:3/6504\n\n     Call trace:\n      load_firmware_cb+0x1310/0x17a0\n      request_firmware_work_func+0x128/0x220\n      process_one_work+0x770/0x1824\n      worker_thread+0x488/0xea0\n      kthread+0x300/0x430\n      ret_from_fork+0x10/0x20\n\n     Allocated by task 6504:\n      kzalloc\n      tuner_probe+0xb0/0x1430\n      i2c_device_probe+0x92c/0xaf0\n      really_probe+0x678/0xcd0\n      driver_probe_device+0x280/0x370\n      __device_attach_driver+0x220/0x330\n      bus_for_each_drv+0x134/0x1c0\n      __device_attach+0x1f4/0x410\n      device_initial_probe+0x20/0x30\n      bus_probe_device+0x184/0x200\n      device_add+0x924/0x12c0\n      device_register+0x24/0x30\n      i2c_new_device+0x4e0/0xc44\n      v4l2_i2c_new_subdev_board+0xbc/0x290\n      v4l2_i2c_new_subdev+0xc8/0x104\n      em28xx_v4l2_init+0x1dd0/0x3770\n\n     Freed by task 6504:\n      kfree+0x238/0x4e4\n      tuner_remove+0x144/0x1c0\n      i2c_device_remove+0xc8/0x290\n      __device_release_driver+0x314/0x5fc\n      device_release_driver+0x30/0x44\n      bus_remove_device+0x244/0x490\n      device_del+0x350/0x900\n      device_unregister+0x28/0xd0\n      i2c_unregister_device+0x174/0x1d0\n      v4l2_device_unregister+0x224/0x380\n      em28xx_v4l2_init+0x1d90/0x3770\n\n     The buggy address belongs to the object at ffff8000d7ca2000\n      which belongs to the cache kmalloc-2k of size 2048\n     The buggy address is located 776 bytes inside of\n      2048-byte region [ffff8000d7ca2000, ffff8000d7ca2800)\n     The buggy address belongs to the page:\n     page:ffff7fe00035f280 count:1 mapcount:0 mapping:ffff8000c001f000 index:0x0\n     flags: 0x7ff800000000100(slab)\n     raw: 07ff800000000100 ffff7fe00049d880 0000000300000003 ffff8000c001f000\n     raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000\n     page dumped because: kasan: bad access detected\n\n     Memory state around the buggy address:\n      ffff8000d7ca2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\n      ffff8000d7ca2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\n     >ffff8000d7ca2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\n                           ^\n      ffff8000d7ca2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\n      ffff8000d7ca2400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\n     ==================================================================\n\n[2]\n    Actually, it is allocated for struct tuner, and dvb_frontend is inside.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:18:05.179Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/ef517bdfc01818419f7bd426969a0c86b14f3e0e",
            },
            {
               url: "https://git.kernel.org/stable/c/850304152d367f104d21c77cfbcc05806504218b",
            },
            {
               url: "https://git.kernel.org/stable/c/208deb6d8c3cb8c3acb1f41eb31cf68ea08726d5",
            },
            {
               url: "https://git.kernel.org/stable/c/68594cec291ff9523b9feb3f43fd853dcddd1f60",
            },
         ],
         title: "media: xc2028: avoid use-after-free in load_firmware_cb()",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-43900",
      datePublished: "2024-08-26T10:10:58.767Z",
      dateReserved: "2024-08-17T09:11:59.291Z",
      dateUpdated: "2024-12-19T09:18:05.179Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-43900\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-08-26T11:15:04.613\",\"lastModified\":\"2024-08-27T14:38:32.967\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmedia: xc2028: avoid use-after-free in load_firmware_cb()\\n\\nsyzkaller reported use-after-free in load_firmware_cb() [1].\\nThe reason is because the module allocated a struct tuner in tuner_probe(),\\nand then the module initialization failed, the struct tuner was released.\\nA worker which created during module initialization accesses this struct\\ntuner later, it caused use-after-free.\\n\\nThe process is as follows:\\n\\ntask-6504           worker_thread\\ntuner_probe                             <= alloc dvb_frontend [2]\\n...\\nrequest_firmware_nowait                 <= create a worker\\n...\\ntuner_remove                            <= free dvb_frontend\\n...\\n                    request_firmware_work_func  <= the firmware is ready\\n                    load_firmware_cb    <= but now the dvb_frontend has been freed\\n\\nTo fix the issue, check the dvd_frontend in load_firmware_cb(), if it is\\nnull, report a warning and just return.\\n\\n[1]:\\n    ==================================================================\\n     BUG: KASAN: use-after-free in load_firmware_cb+0x1310/0x17a0\\n     Read of size 8 at addr ffff8000d7ca2308 by task kworker/2:3/6504\\n\\n     Call trace:\\n      load_firmware_cb+0x1310/0x17a0\\n      request_firmware_work_func+0x128/0x220\\n      process_one_work+0x770/0x1824\\n      worker_thread+0x488/0xea0\\n      kthread+0x300/0x430\\n      ret_from_fork+0x10/0x20\\n\\n     Allocated by task 6504:\\n      kzalloc\\n      tuner_probe+0xb0/0x1430\\n      i2c_device_probe+0x92c/0xaf0\\n      really_probe+0x678/0xcd0\\n      driver_probe_device+0x280/0x370\\n      __device_attach_driver+0x220/0x330\\n      bus_for_each_drv+0x134/0x1c0\\n      __device_attach+0x1f4/0x410\\n      device_initial_probe+0x20/0x30\\n      bus_probe_device+0x184/0x200\\n      device_add+0x924/0x12c0\\n      device_register+0x24/0x30\\n      i2c_new_device+0x4e0/0xc44\\n      v4l2_i2c_new_subdev_board+0xbc/0x290\\n      v4l2_i2c_new_subdev+0xc8/0x104\\n      em28xx_v4l2_init+0x1dd0/0x3770\\n\\n     Freed by task 6504:\\n      kfree+0x238/0x4e4\\n      tuner_remove+0x144/0x1c0\\n      i2c_device_remove+0xc8/0x290\\n      __device_release_driver+0x314/0x5fc\\n      device_release_driver+0x30/0x44\\n      bus_remove_device+0x244/0x490\\n      device_del+0x350/0x900\\n      device_unregister+0x28/0xd0\\n      i2c_unregister_device+0x174/0x1d0\\n      v4l2_device_unregister+0x224/0x380\\n      em28xx_v4l2_init+0x1d90/0x3770\\n\\n     The buggy address belongs to the object at ffff8000d7ca2000\\n      which belongs to the cache kmalloc-2k of size 2048\\n     The buggy address is located 776 bytes inside of\\n      2048-byte region [ffff8000d7ca2000, ffff8000d7ca2800)\\n     The buggy address belongs to the page:\\n     page:ffff7fe00035f280 count:1 mapcount:0 mapping:ffff8000c001f000 index:0x0\\n     flags: 0x7ff800000000100(slab)\\n     raw: 07ff800000000100 ffff7fe00049d880 0000000300000003 ffff8000c001f000\\n     raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000\\n     page dumped because: kasan: bad access detected\\n\\n     Memory state around the buggy address:\\n      ffff8000d7ca2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n      ffff8000d7ca2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n     >ffff8000d7ca2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n                           ^\\n      ffff8000d7ca2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n      ffff8000d7ca2400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n     ==================================================================\\n\\n[2]\\n    Actually, it is allocated for struct tuner, and dvb_frontend is inside.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: medio: xc2028: evitar el use-after-free en load_firmware_cb() syzkaller informó el use-after-free en load_firmware_cb() [1]. La razón es que el módulo asignó un sintonizador de estructuras en tuner_probe(), y luego la inicialización del módulo falló, se liberó el sintonizador de estructuras. Un trabajador que creó durante la inicialización del módulo accede a este sintonizador de estructuras más tarde, lo que provocó un use-after-free. El proceso es el siguiente: task-6504 trabajador_thread tuner_probe &lt;= alloc dvb_frontend [2]... request_firmware_nowait &lt;= crear un trabajador... tuner_remove &lt;= free dvb_frontend... request_firmware_work_func &lt;= el firmware está listo load_firmware_cb &lt;= pero ahora el dvb_frontend ha sido liberado. Para solucionar el problema, verifique el dvd_frontend en load_firmware_cb(), si es nulo, informe una advertencia y simplemente regrese. [1]: =============================================== ==================== ERROR: KASAN: use-after-free en load_firmware_cb+0x1310/0x17a0 Lectura de tamaño 8 en la dirección ffff8000d7ca2308 por tarea kworker/2:3/ 6504 Rastreo de llamadas: load_firmware_cb+0x1310/0x17a0 request_firmware_work_func+0x128/0x220 Process_one_work+0x770/0x1824 Workers_thread+0x488/0xea0 kthread+0x300/0x430 ret_from_fork+0x10/0x20 Asignado por tarea 650 4: kzalloc tuner_probe+0xb0/0x1430 i2c_device_probe+0x92c/0xaf0 very_probe+0x678/0xcd0 driver_probe_device+0x280/0x370 __device_attach_driver+0x220/0x330 bus_for_each_drv+0x134/0x1c0 __device_attach+0x1f4/0x410 dispositivo_initial_probe+0x20/0x30 bus_probe_device+0x 184/0x200 dispositivo_add+0x924/0x12c0 registro_dispositivo+0x24/0x30 i2c_new_device+0x4e0/0xc44 v4l2_i2c_new_subdev_board+0xbc/0x290 v4l2_i2c_new_subdev+0xc8/0x104 em28xx_v4l2_init+0x1dd0/0x3770 Liberado por la tarea 6504: kfree+0x238/0x4e4 tuner_remove+0x144/0x1c0 vice_remove+0xc8/0x290 __device_release_driver+0x314/0x5fc dispositivo_release_driver+0x30/0x44 bus_remove_device+0x244/0x490 device_del+0x350/0x900 device_unregister+0x28/0xd0 i2c_unregister_device+0x174/0x1d0 v4l2_device_unregister+0x224/0x380 em28xx_v4l2_init+0x1d90/0x3770 La dirección con errores pertenece al objeto en ffff8000d7ca200 0 que pertenece al caché kmalloc-2k de tamaño 2048 La dirección del error se encuentra 776 bytes dentro de la región de 2048 bytes [ffff8000d7ca2000, ffff8000d7ca2800) La dirección con errores pertenece a la página: página:ffff7fe00035f280 recuento:1 mapcount:0 mapeo:ffff8000c001f000 índice:0x0 banderas: 0x7ff800000000100(slab) : 07ff800000000100 ffff7fe00049d880 0000000300000003 ffff8000c001f000 crudo: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 página volcada porque: kasan: mal acceso detectado Estado de la memoria alrededor de la dirección del error: ffff8000d7ca2200: fb fb fb fb fb fb fb fb fb fb fb fb f b fb fb fb ffff8000d7ca2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb &gt;ffff8000d7ca2300: fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8000d7ca2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8000d7ca2400: b fb fb fb fb fb fb fb fb fb fb fb fb fb fb ======================================== ============================ [2] En realidad, está asignado para el sintonizador de estructuras y dvb_frontend está dentro.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"6.1.105\",\"matchCriteriaId\":\"ECB889E5-9368-4201-9049-7289757A0B8D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.46\",\"matchCriteriaId\":\"FA11941E-81FB-484C-B583-881EEB488340\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.10.5\",\"matchCriteriaId\":\"D074AE50-4A5E-499C-A2FD-75FD60DEA560\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/208deb6d8c3cb8c3acb1f41eb31cf68ea08726d5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/68594cec291ff9523b9feb3f43fd853dcddd1f60\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/850304152d367f104d21c77cfbcc05806504218b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ef517bdfc01818419f7bd426969a0c86b14f3e0e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-43900\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T15:28:53.298476Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:12.454Z\"}}], \"cna\": {\"title\": \"media: xc2028: avoid use-after-free in load_firmware_cb()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"1da177e4c3f4\", \"lessThan\": \"ef517bdfc018\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1da177e4c3f4\", \"lessThan\": \"850304152d36\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1da177e4c3f4\", \"lessThan\": \"208deb6d8c3c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"1da177e4c3f4\", \"lessThan\": \"68594cec291f\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/media/tuners/xc2028.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"unaffected\", \"version\": \"6.1.105\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.46\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.5\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/media/tuners/xc2028.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ef517bdfc01818419f7bd426969a0c86b14f3e0e\"}, {\"url\": \"https://git.kernel.org/stable/c/850304152d367f104d21c77cfbcc05806504218b\"}, {\"url\": \"https://git.kernel.org/stable/c/208deb6d8c3cb8c3acb1f41eb31cf68ea08726d5\"}, {\"url\": \"https://git.kernel.org/stable/c/68594cec291ff9523b9feb3f43fd853dcddd1f60\"}], \"x_generator\": {\"engine\": \"bippy-c9c4e1df01b2\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmedia: xc2028: avoid use-after-free in load_firmware_cb()\\n\\nsyzkaller reported use-after-free in load_firmware_cb() [1].\\nThe reason is because the module allocated a struct tuner in tuner_probe(),\\nand then the module initialization failed, the struct tuner was released.\\nA worker which created during module initialization accesses this struct\\ntuner later, it caused use-after-free.\\n\\nThe process is as follows:\\n\\ntask-6504           worker_thread\\ntuner_probe                             <= alloc dvb_frontend [2]\\n...\\nrequest_firmware_nowait                 <= create a worker\\n...\\ntuner_remove                            <= free dvb_frontend\\n...\\n                    request_firmware_work_func  <= the firmware is ready\\n                    load_firmware_cb    <= but now the dvb_frontend has been freed\\n\\nTo fix the issue, check the dvd_frontend in load_firmware_cb(), if it is\\nnull, report a warning and just return.\\n\\n[1]:\\n    ==================================================================\\n     BUG: KASAN: use-after-free in load_firmware_cb+0x1310/0x17a0\\n     Read of size 8 at addr ffff8000d7ca2308 by task kworker/2:3/6504\\n\\n     Call trace:\\n      load_firmware_cb+0x1310/0x17a0\\n      request_firmware_work_func+0x128/0x220\\n      process_one_work+0x770/0x1824\\n      worker_thread+0x488/0xea0\\n      kthread+0x300/0x430\\n      ret_from_fork+0x10/0x20\\n\\n     Allocated by task 6504:\\n      kzalloc\\n      tuner_probe+0xb0/0x1430\\n      i2c_device_probe+0x92c/0xaf0\\n      really_probe+0x678/0xcd0\\n      driver_probe_device+0x280/0x370\\n      __device_attach_driver+0x220/0x330\\n      bus_for_each_drv+0x134/0x1c0\\n      __device_attach+0x1f4/0x410\\n      device_initial_probe+0x20/0x30\\n      bus_probe_device+0x184/0x200\\n      device_add+0x924/0x12c0\\n      device_register+0x24/0x30\\n      i2c_new_device+0x4e0/0xc44\\n      v4l2_i2c_new_subdev_board+0xbc/0x290\\n      v4l2_i2c_new_subdev+0xc8/0x104\\n      em28xx_v4l2_init+0x1dd0/0x3770\\n\\n     Freed by task 6504:\\n      kfree+0x238/0x4e4\\n      tuner_remove+0x144/0x1c0\\n      i2c_device_remove+0xc8/0x290\\n      __device_release_driver+0x314/0x5fc\\n      device_release_driver+0x30/0x44\\n      bus_remove_device+0x244/0x490\\n      device_del+0x350/0x900\\n      device_unregister+0x28/0xd0\\n      i2c_unregister_device+0x174/0x1d0\\n      v4l2_device_unregister+0x224/0x380\\n      em28xx_v4l2_init+0x1d90/0x3770\\n\\n     The buggy address belongs to the object at ffff8000d7ca2000\\n      which belongs to the cache kmalloc-2k of size 2048\\n     The buggy address is located 776 bytes inside of\\n      2048-byte region [ffff8000d7ca2000, ffff8000d7ca2800)\\n     The buggy address belongs to the page:\\n     page:ffff7fe00035f280 count:1 mapcount:0 mapping:ffff8000c001f000 index:0x0\\n     flags: 0x7ff800000000100(slab)\\n     raw: 07ff800000000100 ffff7fe00049d880 0000000300000003 ffff8000c001f000\\n     raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000\\n     page dumped because: kasan: bad access detected\\n\\n     Memory state around the buggy address:\\n      ffff8000d7ca2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n      ffff8000d7ca2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n     >ffff8000d7ca2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n                           ^\\n      ffff8000d7ca2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n      ffff8000d7ca2400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb\\n     ==================================================================\\n\\n[2]\\n    Actually, it is allocated for struct tuner, and dvb_frontend is inside.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-09-15T17:55:10.560Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-43900\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-09-15T17:55:10.560Z\", \"dateReserved\": \"2024-08-17T09:11:59.291Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-08-26T10:10:58.767Z\", \"assignerShortName\": \"Linux\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.