{"id":"CVE-2025-38719","state":"PUBLISHED","title":"net: hibmcge: fix the division by zero issue","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hibmcge: fix the division by zero issue\n\nWhen the network port is down, the queue is released, and ring->len is 0.\nIn debugfs, hbg_get_queue_used_num() will be called,\nwhich may lead to a division by zero issue.\n\nThis patch adds a check, if ring->len is 0,\nhbg_get_queue_used_num() directly returns 0.","publishedAt":"2025-09-04T15:33:13.213Z","updatedAt":"2026-05-11T21:33:39.729Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"40735e7543f94fc88f58d94fd5f88daa4a2f2c6e","status":"affected","lessThan":"c945e1ad4f3b77166a3215dabc0c6c980d4a9c73","versionType":"git"},{"version":"40735e7543f94fc88f58d94fd5f88daa4a2f2c6e","status":"affected","lessThan":"475e06113c615dafd44262d6d6bd37786f7f4206","versionType":"git"},{"version":"40735e7543f94fc88f58d94fd5f88daa4a2f2c6e","status":"affected","lessThan":"7004b26f0b64331143eb0b312e77a357a11427ce","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.15.11","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.2","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.h"]}],"references":["https://git.kernel.org/stable/c/c945e1ad4f3b77166a3215dabc0c6c980d4a9c73","https://git.kernel.org/stable/c/475e06113c615dafd44262d6d6bd37786f7f4206","https://git.kernel.org/stable/c/7004b26f0b64331143eb0b312e77a357a11427ce"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38719.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38719","state":"PUBLISHED","datePublished":"2025-09-04T15:33:13.213Z","dateUpdated":"2026-05-11T21:33:39.729Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.033Z"},"containers":{"cna":{"title":"net: hibmcge: fix the division by zero issue","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hibmcge: fix the division by zero issue\n\nWhen the network port is down, the queue is released, and ring->len is 0.\nIn debugfs, hbg_get_queue_used_num() will be called,\nwhich may lead to a division by zero issue.\n\nThis patch adds a check, if ring->len is 0,\nhbg_get_queue_used_num() directly returns 0."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"40735e7543f94fc88f58d94fd5f88daa4a2f2c6e","status":"affected","lessThan":"c945e1ad4f3b77166a3215dabc0c6c980d4a9c73","versionType":"git"},{"version":"40735e7543f94fc88f58d94fd5f88daa4a2f2c6e","status":"affected","lessThan":"475e06113c615dafd44262d6d6bd37786f7f4206","versionType":"git"},{"version":"40735e7543f94fc88f58d94fd5f88daa4a2f2c6e","status":"affected","lessThan":"7004b26f0b64331143eb0b312e77a357a11427ce","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.15.11","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.2","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/c945e1ad4f3b77166a3215dabc0c6c980d4a9c73"},{"url":"https://git.kernel.org/stable/c/475e06113c615dafd44262d6d6bd37786f7f4206"},{"url":"https://git.kernel.org/stable/c/7004b26f0b64331143eb0b312e77a357a11427ce"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:33:39.729Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.15.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.16.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}