{"id":"CVE-2024-35878","published":"2024-05-19T08:34:35Z","modified":"2026-05-11T20:12:59Z","title":"of: module: prevent NULL pointer dereference in vsnprintf()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nof: module: prevent NULL pointer dereference in vsnprintf()\n\nIn of_modalias(), we can get passed the str and len parameters which would\ncause a kernel oops in vsnprintf() since it only allows passing a NULL ptr\nwhen the length is also 0. Also, we need to filter out the negative values\nof the len parameter as these will result in a really huge buffer since\nsnprintf() takes size_t parameter while ours is ssize_t...\n\nFound by Linux Verification Center (linuxtesting.org) with the Svace static\nanalysis tool.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00794,"percentile":0.57294,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/e4a449368a2ce6d57a775d0ead27fc07f5a86e5b","tags":[]},{"url":"https://git.kernel.org/stable/c/544561dc56f7e69a053c25e11e6170f48bb97898","tags":[]},{"url":"https://git.kernel.org/stable/c/a1aa5390cc912934fee76ce80af5f940452fa987","tags":[]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":11.46},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bd7a7ed774afd1a4174df34227626c95573be517, < e4a449368a2ce6d57a775d0ead27fc07f5a86e5b",">= bd7a7ed774afd1a4174df34227626c95573be517, < 544561dc56f7e69a053c25e11e6170f48bb97898",">= bd7a7ed774afd1a4174df34227626c95573be517, < a1aa5390cc912934fee76ce80af5f940452fa987"]},{"vendor":"Linux","product":"Linux","versions":["6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-21T15:36:29.071642Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35596","exploited":false,"provenance":"source"}}