{"id":"CVE-2021-47604","published":"2024-06-19T14:54:03Z","modified":"2026-08-05T08:48:33Z","title":"vduse: check that offset is within bounds in get_config()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvduse: check that offset is within bounds in get_config()\n\nThis condition checks \"len\" but it does not check \"offset\" and that\ncould result in an out of bounds read if \"offset > dev->config_size\".\nThe problem is that since both variables are unsigned the\n\"dev->config_size - offset\" subtraction would result in a very high\nunsigned value.\n\nI think these checks might not be necessary because \"len\" and \"offset\"\nare supposed to already have been validated using the\nvhost_vdpa_config_validate() function.  But I do not know the code\nperfectly, and I like to be safe.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00211,"percentile":0.11545,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ebbbc5fea3f648175df1aa3f127c78eb0252cc2a","tags":[]},{"url":"https://git.kernel.org/stable/c/dc1db0060c02d119fd4196924eff2d1129e9a442","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":2.31},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c8a6153b6c59d95c0e091f053f6f180952ade91e, < ebbbc5fea3f648175df1aa3f127c78eb0252cc2a",">= c8a6153b6c59d95c0e091f053f6f180952ade91e, < dc1db0060c02d119fd4196924eff2d1129e9a442"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:12:14.372380Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34606","exploited":false,"provenance":"source"}}