{"id":"CVE-2025-71291","state":"PUBLISHED","title":"misc: bcm_vk: Fix possible null-pointer dereferences in bcm_vk_read()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: bcm_vk: Fix possible null-pointer dereferences in bcm_vk_read()\n\nIn the function bcm_vk_read(), the pointer entry is checked, indicating\nthat it can be NULL. If entry is NULL and rc is set to -EMSGSIZE, the\nfollowing code may cause null-pointer dereferences:\n\n  struct vk_msg_blk tmp_msg = entry->to_h_msg[0];\n  set_msg_id(&tmp_msg, entry->usr_msg_id);\n  tmp_msg.size = entry->to_h_blks - 1;\n\nTo prevent these possible null-pointer dereferences, copy to_h_msg,\nusr_msg_id, and to_h_blks from iter into temporary variables, and return\nthese temporary variables to the application instead of accessing them\nthrough a potentially NULL entry.","publishedAt":"2026-05-06T11:32:23.223Z","updatedAt":"2026-05-11T21:57:21.624Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"741c5a3a0cd893a4218fc0fc8c18403e54fcfb22","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"ece3722169ba93734bfd1f06255e8ab7f19fe964","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"aa97ccc3dc1eba9f4537f0410e9dbb0b05ccf2fb","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"3842f93e6e29d5cc1dcb9e5bda70587b444bed69","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"20f2d9dbe5e972516f8f9948d7ae5b95d1ad77bd","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"ba75ecb97d3f4e95d59002c13afb6519205be6cb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/misc/bcm-vk/bcm_vk_msg.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.165","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.128","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/misc/bcm-vk/bcm_vk_msg.c"]}],"references":["https://git.kernel.org/stable/c/741c5a3a0cd893a4218fc0fc8c18403e54fcfb22","https://git.kernel.org/stable/c/ece3722169ba93734bfd1f06255e8ab7f19fe964","https://git.kernel.org/stable/c/aa97ccc3dc1eba9f4537f0410e9dbb0b05ccf2fb","https://git.kernel.org/stable/c/3842f93e6e29d5cc1dcb9e5bda70587b444bed69","https://git.kernel.org/stable/c/20f2d9dbe5e972516f8f9948d7ae5b95d1ad77bd","https://git.kernel.org/stable/c/ba75ecb97d3f4e95d59002c13afb6519205be6cb"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71291.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71291","state":"PUBLISHED","datePublished":"2026-05-06T11:32:23.223Z","dateUpdated":"2026-05-11T21:57:21.624Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-06T11:31:45.509Z"},"containers":{"cna":{"title":"misc: bcm_vk: Fix possible null-pointer dereferences in bcm_vk_read()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: bcm_vk: Fix possible null-pointer dereferences in bcm_vk_read()\n\nIn the function bcm_vk_read(), the pointer entry is checked, indicating\nthat it can be NULL. If entry is NULL and rc is set to -EMSGSIZE, the\nfollowing code may cause null-pointer dereferences:\n\n  struct vk_msg_blk tmp_msg = entry->to_h_msg[0];\n  set_msg_id(&tmp_msg, entry->usr_msg_id);\n  tmp_msg.size = entry->to_h_blks - 1;\n\nTo prevent these possible null-pointer dereferences, copy to_h_msg,\nusr_msg_id, and to_h_blks from iter into temporary variables, and return\nthese temporary variables to the application instead of accessing them\nthrough a potentially NULL entry."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"741c5a3a0cd893a4218fc0fc8c18403e54fcfb22","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"ece3722169ba93734bfd1f06255e8ab7f19fe964","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"aa97ccc3dc1eba9f4537f0410e9dbb0b05ccf2fb","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"3842f93e6e29d5cc1dcb9e5bda70587b444bed69","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"20f2d9dbe5e972516f8f9948d7ae5b95d1ad77bd","versionType":"git"},{"version":"88517757a829e9ce146a6c7233ad5dcdc66fcbb0","status":"affected","lessThan":"ba75ecb97d3f4e95d59002c13afb6519205be6cb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/misc/bcm-vk/bcm_vk_msg.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.165","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.128","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/misc/bcm-vk/bcm_vk_msg.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/741c5a3a0cd893a4218fc0fc8c18403e54fcfb22"},{"url":"https://git.kernel.org/stable/c/ece3722169ba93734bfd1f06255e8ab7f19fe964"},{"url":"https://git.kernel.org/stable/c/aa97ccc3dc1eba9f4537f0410e9dbb0b05ccf2fb"},{"url":"https://git.kernel.org/stable/c/3842f93e6e29d5cc1dcb9e5bda70587b444bed69"},{"url":"https://git.kernel.org/stable/c/20f2d9dbe5e972516f8f9948d7ae5b95d1ad77bd"},{"url":"https://git.kernel.org/stable/c/ba75ecb97d3f4e95d59002c13afb6519205be6cb"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:57:21.624Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.165"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.6.128"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.18.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.19.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}