{"id":"CVE-2023-54314","aliases":["CVE-2023-54314"],"related":[],"kind":"vulnerability","state":"published","title":"media: af9005: Fix null-ptr-deref in af9005_i2c_xfer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: af9005: Fix null-ptr-deref in af9005_i2c_xfer\n\nIn af9005_i2c_xfer, msg is controlled by user. When msg[i].buf\nis null and msg[i].len is zero, former checks on msg[i].buf would be\npassed. Malicious data finally reach af9005_i2c_xfer. If accessing\nmsg[i].buf[0] without sanity check, null ptr deref would happen.\nWe add check on msg[i].len to prevent crash.\n\nSimilar commit:\ncommit 0ed554fd769a\n(\"media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()\")","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: af9005: Fix null-ptr-deref in af9005_i2c_xfer\n\nIn af9005_i2c_xfer, msg is controlled by user. When msg[i].buf\nis null and msg[i].len is zero, former checks on msg[i].buf would be\npassed. Malicious data finally reach af9005_i2c_xfer. If accessing\nmsg[i].buf[0] without sanity check, null ptr deref would happen.\nWe add check on msg[i].len to prevent crash.\n\nSimilar commit:\ncommit 0ed554fd769a\n(\"media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()\")","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmedia: af9005: Corrección de desreferencia de puntero nulo en af9005_i2c_xfer\n\nEn af9005_i2c_xfer, msg es controlado por el usuario. Cuando msg[i].buf es nulo y msg[i].len es cero, las comprobaciones anteriores en msg[i].buf se pasarían. Datos maliciosos finalmente alcanzan af9005_i2c_xfer. Si se accede a msg[i].buf[0] sin una comprobación de cordura, ocurriría una desreferencia de puntero nulo. Añadimos una comprobación en msg[i].len para prevenir un fallo.\n\nCommit similar:\ncommit 0ed554fd769a\n('media: dvb-usb: az6027: corrección de desreferencia de puntero nulo en az6027_i2c_xfer()')","source":"nvd"}],"published":"2025-12-30T12:23:45.179Z","modified":"2026-06-17T06:47:12.603Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"98c12abb275b75a98ff62de9466d21e4daa98536","status":"affected"},{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"63d962ac7a52c0ff4cd09af2e284dce5e5955dfe","status":"affected"},{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"0c02eb70b1dd4ae9bb304ce6cdadbc6faba2b2e9","status":"affected"},{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"c7e5ac737db25d7387fe517cb5207706782b6cf8","status":"affected"},{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"033b0c0780adee32dde218179e9bc51d2525108f","status":"affected"},{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"abb6fd93e05e80668d2317fe1110bc99b05034c3","status":"affected"},{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"e595ff350b2fd600823ee8491df7df693ae4b7c5","status":"affected"},{"type":"git","introduced":"af4e067e1dcf926d9523dff11e46c45fd9fa9da2","fixed":"f4ee84f27625ce1fdf41e8483fa0561a1b837d10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.23","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.23","status":"unaffected"},{"type":"semver","introduced":"4.14.326","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.295","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.257","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.197","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.133","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.55","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.5","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/98c12abb275b75a98ff62de9466d21e4daa98536","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63d962ac7a52c0ff4cd09af2e284dce5e5955dfe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c02eb70b1dd4ae9bb304ce6cdadbc6faba2b2e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7e5ac737db25d7387fe517cb5207706782b6cf8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/033b0c0780adee32dde218179e9bc51d2525108f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/abb6fd93e05e80668d2317fe1110bc99b05034c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e595ff350b2fd600823ee8491df7df693ae4b7c5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4ee84f27625ce1fdf41e8483fa0561a1b837d10","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54314","url":"https://www.cve.org/CVERecord?id=CVE-2023-54314","licence":"CVE Terms of Use","modified":"2026-05-11T19:59:34.318Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54314","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54314","licence":"Public domain","modified":"2026-06-17T06:47:12.603Z"}],"updatedAt":"2026-11-25T22:58:35.271Z","epss":{"score":0.00212,"percentile":0.12192,"date":"2026-12-01T12:00:22.000Z"}}