{"id":"CVE-2021-47556","published":"2024-05-24T15:09:57Z","modified":"2026-05-11T13:56:54Z","title":"ethtool: ioctl: fix potential NULL deref in ethtool_set_coalesce()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nethtool: ioctl: fix potential NULL deref in ethtool_set_coalesce()\n\nethtool_set_coalesce() now uses both the .get_coalesce() and\n.set_coalesce() callbacks. But the check for their availability is\nbuggy, so changing the coalesce settings on a device where the driver\nprovides only _one_ of the callbacks results in a NULL pointer\ndereference instead of an -EOPNOTSUPP.\n\nFix the condition so that the availability of both callbacks is\nensured. This also matches the netlink code.\n\nNote that reproducing this requires some effort - it only affects the\nlegacy ioctl path, and needs a specific combination of driver options:\n- have .get_coalesce() and .coalesce_supported but no\n .set_coalesce(), or\n- have .set_coalesce() but no .get_coalesce(). Here eg. ethtool doesn't\n  cause the crash as it first attempts to call ethtool_get_coalesce()\n  and bails out on error.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00184,"percentile":0.08187,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/abfdd9e2f0f9699015d72317f74154d3e53664e6","tags":[]},{"url":"https://git.kernel.org/stable/c/0276af2176c78771da7f311621a25d7608045827","tags":[]}],"priority":{"score":1.6,"factors":[{"name":"EPSS percentile","points":1.64}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f3ccfda1931977b80267ba54070a1aeafa18f6ca, < abfdd9e2f0f9699015d72317f74154d3e53664e6",">= f3ccfda1931977b80267ba54070a1aeafa18f6ca, < 0276af2176c78771da7f311621a25d7608045827"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:35:17.251127Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34558","exploited":false,"provenance":"source"}}