{"id":"CVE-2023-53524","state":"PUBLISHED","title":"wifi: iwlwifi: pcie: Fix integer overflow in iwl_write_to_user_buf","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: iwlwifi: pcie: Fix integer overflow in iwl_write_to_user_buf\n\nAn integer overflow occurs in the iwl_write_to_user_buf() function,\nwhich is called by the iwl_dbgfs_monitor_data_read() function.\n\nstatic bool iwl_write_to_user_buf(char __user *user_buf, ssize_t count,\n\t\t\t\t  void *buf, ssize_t *size,\n\t\t\t\t  ssize_t *bytes_copied)\n{\n\tint buf_size_left = count - *bytes_copied;\n\n\tbuf_size_left = buf_size_left - (buf_size_left % sizeof(u32));\n\tif (*size > buf_size_left)\n\t\t*size = buf_size_left;\n\nIf the user passes a SIZE_MAX value to the \"ssize_t count\" parameter,\nthe ssize_t count parameter is assigned to \"int buf_size_left\".\nThen compare \"*size\" with \"buf_size_left\" . Here, \"buf_size_left\" is a\nnegative number, so \"*size\" is assigned \"buf_size_left\" and goes into\nthe third argument of the copy_to_user function, causing a heap overflow.\n\nThis is not a security vulnerability because iwl_dbgfs_monitor_data_read()\nis a debugfs operation with 0400 privileges.","publishedAt":"2025-10-01T11:46:10.397Z","updatedAt":"2026-05-11T19:46:38.536Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"0ad8dd870aa187d0c21d032bb2c6433559075eec","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"059e426d666a41e26b184c177c1ca3ee2d6fa1b6","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"82f877ec9b041edc4c7c509c605cc3393d837bf0","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"eb1ef44efac797b384d361a76e33f77027c29a14","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"de78456976026102babe66258c228691ca5677c0","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"58d1b717879bfeabe09b35e41ad667c79933eb2e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/pcie/trans.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.244","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.181","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.113","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.30","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.4","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/pcie/trans.c"]}],"references":["https://git.kernel.org/stable/c/0ad8dd870aa187d0c21d032bb2c6433559075eec","https://git.kernel.org/stable/c/059e426d666a41e26b184c177c1ca3ee2d6fa1b6","https://git.kernel.org/stable/c/82f877ec9b041edc4c7c509c605cc3393d837bf0","https://git.kernel.org/stable/c/eb1ef44efac797b384d361a76e33f77027c29a14","https://git.kernel.org/stable/c/de78456976026102babe66258c228691ca5677c0","https://git.kernel.org/stable/c/58d1b717879bfeabe09b35e41ad667c79933eb2e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53524.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53524","state":"PUBLISHED","datePublished":"2025-10-01T11:46:10.397Z","dateUpdated":"2026-05-11T19:46:38.536Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-01T11:39:39.407Z"},"containers":{"cna":{"title":"wifi: iwlwifi: pcie: Fix integer overflow in iwl_write_to_user_buf","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: iwlwifi: pcie: Fix integer overflow in iwl_write_to_user_buf\n\nAn integer overflow occurs in the iwl_write_to_user_buf() function,\nwhich is called by the iwl_dbgfs_monitor_data_read() function.\n\nstatic bool iwl_write_to_user_buf(char __user *user_buf, ssize_t count,\n\t\t\t\t  void *buf, ssize_t *size,\n\t\t\t\t  ssize_t *bytes_copied)\n{\n\tint buf_size_left = count - *bytes_copied;\n\n\tbuf_size_left = buf_size_left - (buf_size_left % sizeof(u32));\n\tif (*size > buf_size_left)\n\t\t*size = buf_size_left;\n\nIf the user passes a SIZE_MAX value to the \"ssize_t count\" parameter,\nthe ssize_t count parameter is assigned to \"int buf_size_left\".\nThen compare \"*size\" with \"buf_size_left\" . Here, \"buf_size_left\" is a\nnegative number, so \"*size\" is assigned \"buf_size_left\" and goes into\nthe third argument of the copy_to_user function, causing a heap overflow.\n\nThis is not a security vulnerability because iwl_dbgfs_monitor_data_read()\nis a debugfs operation with 0400 privileges."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"0ad8dd870aa187d0c21d032bb2c6433559075eec","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"059e426d666a41e26b184c177c1ca3ee2d6fa1b6","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"82f877ec9b041edc4c7c509c605cc3393d837bf0","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"eb1ef44efac797b384d361a76e33f77027c29a14","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"de78456976026102babe66258c228691ca5677c0","versionType":"git"},{"version":"f7805b33f9b13a87b1fcf9dfbc3dcbce281a1436","status":"affected","lessThan":"58d1b717879bfeabe09b35e41ad667c79933eb2e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/pcie/trans.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.244","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.181","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.113","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.30","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.4","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/pcie/trans.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0ad8dd870aa187d0c21d032bb2c6433559075eec"},{"url":"https://git.kernel.org/stable/c/059e426d666a41e26b184c177c1ca3ee2d6fa1b6"},{"url":"https://git.kernel.org/stable/c/82f877ec9b041edc4c7c509c605cc3393d837bf0"},{"url":"https://git.kernel.org/stable/c/eb1ef44efac797b384d361a76e33f77027c29a14"},{"url":"https://git.kernel.org/stable/c/de78456976026102babe66258c228691ca5677c0"},{"url":"https://git.kernel.org/stable/c/58d1b717879bfeabe09b35e41ad667c79933eb2e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:46:38.536Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.4.244"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.10.181"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.15.113"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1.30"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}