From Al Viro: Handling of incoming packet in net/bluetooth/cmtp/capi.c: case CAPI_FUNCTION_GET_SERIAL_NUMBER: controller = CAPIMSG_U32(skb->data, CAPI_MSG_BASELEN + 12); if (!info && ctrl) { memset(ctrl->serial, 0, CAPI_SERIAL_LEN); strncpy(ctrl->serial, skb->data + CAPI_MSG_BASELEN + 17, skb->data[CAPI_MSG_BASELEN + 16]); } break; The "->serial" is "unsigned char[8]" and no checks are done on "skb->data[CAPI_MSG_BASELEN + 16]" incoming packet. This could mess with "struct capi_ctr" from include/linux/isdn/capilli.h and give a posibility to overwrite "struct proc_dir_entry *procent;". The "case CAPI_FUNCTION_GET_MANUFACTURER:" in the same place is dealing with same problem.
committed in stream E5 build 42.0.4
committed in stream U5 build 42.33. A test kernel with this patch is available from http://people.redhat.com/~jbaron/rhel4/
verified that the patch is in the 42.0.8 kernel.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2007-0014.html