To address the issues of numerous small targets, significant scale variations, and complex background interference that limit the detection precision in aerial image small target detection, a small target detection algorithm for Unmanned Aerial Vehicle (UAV) aerial images, named CSL-YOLOv12, was proposed based on the improved YOLOv12n. First, a CSP-Partial Convolution (CSP-PConv) module was designed to improve the backbone network, thereby enhancing the model's ability to extract contextual information and reducing the model's computational cost. Second, a Self-Adaptive Calibration Feature Pyramid Network (SACFPN) module was designed to improve the neck network, which enhanced the model's multi-scale feature fusion capability. Finally, a Lightweight Shared Convolutional detection Head (LSCHead) was introduced to improve the model's localization and classification of small targets. Experimental results showed that CSL-YOLOv12 achieved a mean Average Precision (mAP) of 39.6%, a precision of 49.2%, and a recall of 38.2% on the VisDrone2019 dataset, which are 5.0, 3.1, and 4.0 percentage points higher than those of the baseline model, YOLOv12n. CSL-YOLOv12 effectively enhances target detection precision in aerial scenes.