Object detection in aerial images has always been a challenging task due to the generally small size of the objects. Most current detectors prioritize the development of new detection frameworks, often overlooking research on fundamental components such as feature pyramid networks (FPNs). In this article, we introduce the cross-layer feature pyramid transformer (CFPT), a novel upsampler-free FPN designed specifically for small object detection in aerial images. CFPT incorporates two meticulously designed attention blocks with linear computational complexity: cross-layer channelwise attention (CCA) and cross-layer spatialwise attention (CSA). CCA achieves cross-layer interaction by dividing channelwise token groups to perceive cross-layer global information along the spatial dimension, while CSA enables cross-layer interaction by dividing spatialwise token groups to perceive cross-layer global information along the channel dimension. By integrating these modules, CFPT enables efficient cross-layer interaction in a single step, thereby avoiding the semantic gap and information loss associated with elementwise summation and layer-by-layer transmission. In addition, CFPT incorporates global contextual information, which improves detection performance for small objects. To further enhance location awareness during cross-layer interaction, we propose the cross-layer consistent relative positional encoding (CCPE) based on interlayer mutual receptive fields. We evaluate the effectiveness of CFPT on three challenging object detection datasets in aerial images: VisDrone2019-DET, TinyPerson, and xView. Extensive experiments demonstrate that CFPT outperforms state-of-the-art FPNs while incurring lower computational costs. The code is available at https://github.com/duzw9311/CFPT