A former employer can say anything truthful about your performance. However, most employers have a policy to only confirm dates of employment, final salary and other limited information.
An exception to this are jobs such as truck driver positions, which fall under Department of Transportation regulations where employers are required to accurately respond to an inquiry from a prospective employer about whether you took a drug test, refused a drug test or tested positive in a drug test.