"value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: fix potential invalid pointer dereference in blk_add_partition\n\nThe blk_add_partition() function initially used a single if-condition\n(IS_ERR(part)) to check for errors when adding a partition. This was\nmodified to handle the specific case of -ENXIO separately, allowing the\nfunction to proceed without logging the error in this case. However,\nthis change unintentionally left a path where md_autodetect_dev()\ncould be called without confirming that part is a valid pointer.\n\nThis commit separates the error handling logic by splitting the\ninitial if-condition, improving code readability and handling specific\nerror scenarios explicitly. The function now distinguishes the general\nerror case from -ENXIO without altering the existing behavior of\nmd_autodetect_dev() calls."
"value":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: block: fix potential no valid pointer dereference in blk_add_partition La funci\u00f3n blk_add_partition() inicialmente usaba una sola condici\u00f3n if (IS_ERR(part)) para verificar errores al agregar una partici\u00f3n. Esto se modific\u00f3 para manejar el caso espec\u00edfico de -ENXIO por separado, lo que permite que la funci\u00f3n contin\u00fae sin registrar el error en este caso. Sin embargo, este cambio dej\u00f3 involuntariamente una ruta donde se pod\u00eda llamar a md_autodetect_dev() sin confirmar que part es un puntero v\u00e1lido. Esta confirmaci\u00f3n separa la l\u00f3gica de manejo de errores al dividir la condici\u00f3n if inicial, lo que mejora la legibilidad del c\u00f3digo y maneja escenarios de error espec\u00edficos de manera expl\u00edcita. La funci\u00f3n ahora distingue el caso de error general de -ENXIO sin alterar el comportamiento existente de las llamadas a md_autodetect_dev()."