{"id":"CVE-2024-36010","published":"2024-05-22T11:46:32Z","modified":"2026-05-11T20:15:34Z","title":"igb: Fix string truncation warnings in igb_set_fw_version","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nigb: Fix string truncation warnings in igb_set_fw_version\n\nCommit 1978d3ead82c (\"intel: fix string truncation warnings\")\nfixes '-Wformat-truncation=' warnings in igb_main.c by using kasprintf.\n\ndrivers/net/ethernet/intel/igb/igb_main.c:3092:53: warning：‘%d’ directive output may be truncated writing between 1 and 5 bytes into a region of size between 1 and 13 [-Wformat-truncation=]\n 3092 |                                  \"%d.%d, 0x%08x, %d.%d.%d\",\n      |                                                     ^~\ndrivers/net/ethernet/intel/igb/igb_main.c:3092:34: note：directive argument in the range [0, 65535]\n 3092 |                                  \"%d.%d, 0x%08x, %d.%d.%d\",\n      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~\ndrivers/net/ethernet/intel/igb/igb_main.c:3092:34: note：directive argument in the range [0, 65535]\ndrivers/net/ethernet/intel/igb/igb_main.c:3090:25: note：‘snprintf’ output between 23 and 43 bytes into a destination of size 32\n\nkasprintf() returns a pointer to dynamically allocated memory\nwhich can be NULL upon failure.\n\nFix this warning by using a larger space for adapter->fw_version,\nand then fall back and continue to use snprintf.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00178,"percentile":0.07584,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/c56d055893cbe97848611855d1c97d0ab171eccc","tags":[]}],"priority":{"score":1.5,"factors":[{"name":"EPSS percentile","points":1.52}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1978d3ead82c8e39d739dd4e19b1ea7bf923dfb4, < c56d055893cbe97848611855d1c97d0ab171eccc"]},{"vendor":"Linux","product":"Linux","versions":["6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-22T15:07:27.450256Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35820","exploited":false,"provenance":"source"}}