{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-38616","id":"CVE-2024-38616","title":"wifi: carl9170: re-fix fortified-memset warning","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: carl9170: re-fix fortified-memset warning\n\nThe carl9170_tx_release() function sometimes triggers a fortified-memset\nwarning in my randconfig builds:\n\nIn file included from include/linux/string.h:254,\n                 from drivers/net/wireless/ath/carl9170/tx.c:40:\nIn function 'fortify_memset_chk',\n    inlined from 'carl9170","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: carl9170: re-fix fortified-memset warning\n\nThe carl9170_tx_release() function sometimes triggers a fortified-memset\nwarning in my randconfig builds:\n\nIn file included from include/linux/string.h:254,\n                 from drivers/net/wireless/ath/carl9170/tx.c:40:\nIn function 'fortify_memset_chk',\n    inlined from 'carl9170_tx_release' at drivers/net/wireless/ath/carl9170/tx.c:283:2,\n    inlined from 'kref_put' at include/linux/kref.h:65:3,\n    inlined from 'carl9170_tx_put_skb' at drivers/net/wireless/ath/carl9170/tx.c:342:9:\ninclude/linux/fortify-string.h:493:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]\n  493 |                         __write_overflow_field(p_size_field, size);\n\nKees previously tried to avoid this by using memset_after(), but it seems\nthis does not fully address the problem. I noticed that the memset_after()\nhere is done on a different part of the union (status) than the original\ncast was from (rate_driver_data), which may confuse the compiler.\n\nUnfortunately, the memset_after() trick does not work on driver_rates[]\nbecause that is part of an anonymous struct, and I could not get\nstruct_group() to do this either. Using two separate memset() calls\non the two members does address the warning though.","published":"2024-06-19T13:56:16.086Z","updated":"2026-10-28T02:30:45.617856157Z","reserved":"2024-06-18T19:36:34.944Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e","lessThan":"13857683126e8a6492af73c74d702835f7a2175b","status":"affected","versionType":"git"},{"version":"fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e","lessThan":"87586467098281f04fa93e59fe3a516b954bddc4","status":"affected","versionType":"git"},{"version":"fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e","lessThan":"0c38c9c460bb8ce8d6f6cf316e0d71a70983ec83","status":"affected","versionType":"git"},{"version":"fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e","lessThan":"042a39bb8e0812466327a5102606e88a5a4f8c02","status":"affected","versionType":"git"},{"version":"fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e","lessThan":"066afafc10c9476ee36c47c9062527a17e763901","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","lessThan":"5.17","status":"unaffected","versionType":"semver"},{"version":"6.1.93","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.33","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.8.12","lessThanOrEqual":"6.8.*","status":"unaffected","versionType":"semver"},{"version":"6.9.3","lessThanOrEqual":"6.9.*","status":"unaffected","versionType":"semver"},{"version":"6.10","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-400"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/13857683126e8a6492af73c74d702835f7a2175b","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/87586467098281f04fa93e59fe3a516b954bddc4","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/0c38c9c460bb8ce8d6f6cf316e0d71a70983ec83","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/042a39bb8e0812466327a5102606e88a5a4f8c02","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/066afafc10c9476ee36c47c9062527a17e763901","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38616.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38616","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00651,"epssPercentile":0.52001,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-38616","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38616","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-38616","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-38616","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}